-
Notifications
You must be signed in to change notification settings - Fork 474
Absolutify CXX as well as CC #969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Can you think of a test? |
f4fd419
to
9586655
Compare
@hlopko Added one - WDYT? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment from me but otherwise looks good 😄
@@ -258,15 +259,6 @@ fn get_target_env_vars<P: AsRef<Path>>(rustc: &P) -> Result<BTreeMap<String, Str | |||
.collect()) | |||
} | |||
|
|||
fn absolutify(root: &Path, maybe_relative: OsString) -> OsString { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a potential source of regressions. Maybe do this in a separate PR?
9586655
to
2ac4b8b
Compare
Hi all, I may be wrong as I have little experience with bazel and less so with rules_rust, so bear with me. I think the Also, for some reason the cc_toolchain flags are not passed. We have a cc_toolchain that sets I managed to fix sysroot problem by using I can test any potential fixes so let me know if I can help. Best, |
Also add the `--sysroot` flag if needed
2ac4b8b
to
e851576
Compare
Yes indeed, this was a good catch! Fortunately @scentini noticed this and fixed it in #976 :)
This is definitely an issue too, but a separate one - if you're able to put together a PR to fix it that would be wonderful! I imagine we should be using FWIW there's a demo of getting these flags from the toolchain in a rule here - a PR that basically did this, in |
Sound good, thanks for the pointers! Let me see if I can draft something. |
@illicitonion Any chance we can get a new create_universe release? When using the latest commit, there seems to be an API change that leads to:
|
@ikalchev We're not currently doing releases - how are you pulling the binary in and running your build? |
We set the rules_rust repo to some CLN above this PR, define the
I guess we can build the resolver from source ourselves and host it somewhere but was hoping for an official release. |
This reminds me, I think we reached rough consensus on releases, but haven't done any yet... I'll poke #415 :) |
@illicitonion Is the guidance then to build the resolver from source? |
|
This reverts commit b3e26e0.
This reverts commit b3e26e0.
Also add the
--sysroot
flag if neededThis is needed for in-tree CXX values because we chdir before execing the build script binary.
Fixes #950