Skip to content
This repository was archived by the owner on Mar 1, 2019. It is now read-only.

loader: Change RUSTC env var behavior #121

Merged
merged 1 commit into from
Nov 10, 2017
Merged

loader: Change RUSTC env var behavior #121

merged 1 commit into from
Nov 10, 2017

Conversation

DSpeckhals
Copy link
Contributor

Previously environmental variables were determined at compile time (not desired), and if not present, the call to rustc to get the sysroot would fail. This commit changes the semantics to shell out to rustc in a more predictable fashion.

When merged this will fix #119. After this is released, I can update the RLS's version of rls-analysis, and eventually get these changes out via rust-lang/rust.

Previously environmental variables were determined at compile time (not
desired), and if not present, the call to rustc to get the sysroot would
fail. This commit changes the semantics to shell out to rustc in a more
predictable fashion.
@DSpeckhals
Copy link
Contributor Author

Tests are not failing from this commit from what I can tell. Git bisect shows that 4cb03ba introduced the failing tests.

@nrc
Copy link
Member

nrc commented Nov 10, 2017

Thanks for fixing this! Yeah, failing tests are due to some missing test data which should be fixed now.

@nrc nrc merged commit e9dfe3e into rust-dev-tools:master Nov 10, 2017
@DSpeckhals DSpeckhals deleted the env-var-detection branch November 10, 2017 15:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use of option_env Macro Causing the RLS to Panic?
2 participants