Absolutify CXX as well as CC #969
Conversation
|
Can you think of a test? |
f4fd419 to
9586655
Compare
|
@hlopko Added one - WDYT? |
UebelAndre
left a comment
There was a problem hiding this comment.
One comment from me but otherwise looks good 😄
| .collect()) | ||
| } | ||
|
|
||
| fn absolutify(root: &Path, maybe_relative: OsString) -> OsString { |
There was a problem hiding this comment.
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
--sysrootflag if neededThis is needed for in-tree CXX values because we chdir before execing the build script binary.
Fixes #950