Skip to content
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

Set BOOST_TOOLSET* from CC and CXX env variables. #499

Merged
merged 1 commit into from
Oct 28, 2017

Conversation

tpikonen
Copy link
Contributor

Build scripts for boost currently have the toolset hardcoded to clang. Most linux systems have gcc as the default compiler, which makes the build fail without installing an additional compiler. This patch sets the BOOST_TOOLSET* variables from the CC and CXX environment variables, which should be set to reasonable defaults in mason.sh.

@springmeyer
Copy link
Contributor

Thanks for noticing and fixing. Also thanks for all your other PRs - very appreciated. I am busy but I'll do my best to respond and merge when I can.

As far as this one: did you have a chance to test? I worry that these arguments expect a compiler name rather than a path and CXX/CC might provide a full path - can you test that? Then, happy to merge.

Using basename of given C and C++ compiler paths seems to work for
the common cases of gcc and clang.
@tpikonen
Copy link
Contributor Author

You're correct, Boost build system does not work with BOOST_TOOLSET* set to binaries with full path. Fortunately the basename of the full paths works for (at least) the common compilers of gcc and clang. I've updated the patch accordingly.

@springmeyer springmeyer merged commit cf8ffec into mapbox:master Oct 28, 2017
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