-
Notifications
You must be signed in to change notification settings - Fork 564
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
HOST
environment variable should not be cleared in all cases.
#1766
Comments
#1663 is the root of this, it unconditionally removes the |
Hmm, that's unfortunate. So compiletest-rs can't be used with sccache then, unless it's fixed. |
I think removing host might have been an overshoot, but I am not sure in which contexts it's used. I definitely could see potential for abuse though, especially in the C/CXX domain. |
Note that I have to double check, if i.e. |
|
I think the patch originates from an environment where |
Yeah, so cargo sets HOST when running build.rs's. This build.rs then propagates it to the actual build of the crate, but it's not picked up (because you clear it, I guess). |
I'd be very happy to review a PR in that direction, it's non trivial though and definitely requires some digging in how cargo handles the different targets. I won't have time to investigate anytime soon. |
It's probably easier to fix compiletest-rs in this case: Manishearth/compiletest-rs#269 That said I would say that stripping HOST in this manner is almost certainly overeager, given that much more rust code will care about it in this case. |
HOST
environment variable from compiletest_rs's build script to crate build on x86_64HOST
environment variable should not be cleared in all cases.
I fixed this in compiletest-rs, so I renamed the issue. |
Hi. We're getting the following error while building
compiletest_rs
under sccache on x86_64:This should be set by
compiletest_rs
's build script: https://github.com/Manishearth/compiletest-rs/blob/master/build.rs#L6 -- nothing turns on therustc
feature, but doesn't seem to be when building for x86_64 (perplexingly, it works for aarch64).Potentially irrelevant background: In https://github.com/tcdi/plrust we're trying to introduce sccache into our build system (CC @BradyBonnette who is actually doing most of the work here). As part of that project, we have a custom rustc_driver-user that uses uses the
compiletest_rs
crate crate to test itself (usage is in https://github.com/tcdi/plrust/blob/main/plrustc/plrustc/tests/uitests.rs, in case that helps you find the actual code and such).The text was updated successfully, but these errors were encountered: