Skip to content

[Build Script Helper] Setup environment variables for the specified toolchain's executables #193

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

Merged
merged 1 commit into from
Aug 8, 2020

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Aug 6, 2020

If a toolchain is specified, set the search environment variable for each tool executable the driver cares about to ensure that the specified toolchain's specific version is used.

…chain executables

If a toolchain is specified, set the search environment variable for each tool executable the driver cares about.
The driver will then use this environment variable use to find the tool.
@artemcm
Copy link
Contributor Author

artemcm commented Aug 6, 2020

@swift-ci please test

@artemcm
Copy link
Contributor Author

artemcm commented Aug 6, 2020

I ran into this because on Ubuntu 16.04, even with a specified toolchain, the driver could not locate some executables. Curiously, this did not happen on Ubuntu 18.04 or 20.04.

I'm still trying to figure out why this specific version of Ubuntu breaks; but, regardless, I think this change is an improvement because it ensures that we do use the provided toolchain's executables, instead of relying on search paths and potentially accidentally using a wrong executable for any of these tools.

@artemcm artemcm requested review from DougGregor and nkcsgexi August 6, 2020 23:49
@artemcm artemcm merged commit fba6877 into swiftlang:master Aug 8, 2020
@artemcm artemcm deleted the ExecPathsNowAlsoExplicit branch January 20, 2021 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants