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

How to change the default toolset during build? #695

Open
yurivict opened this issue Dec 28, 2020 · 2 comments
Open

How to change the default toolset during build? #695

yurivict opened this issue Dec 28, 2020 · 2 comments
Labels
enhancement transition Transition to bfgroup/b2

Comments

@yurivict
Copy link

yurivict commented Dec 28, 2020

@grafikrobot

The build fails:


warning: No toolsets are configured.
warning: Configuring default toolset "gcc".
warning: If the default is wrong, your build may not work correctly.
warning: Use the "toolset=xxxxx" option to override our guess.
warning: For more configuration options, please consult
warning: http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html
/usr/ports/devel/boost_build/work/build-4.3.0/src/tools/gcc.jam:226: in gcc.init from module gcc
error: toolset gcc initialization:
error: no command provided, default command 'g++' not found
error: initialized from

http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html mentioned above is a broken link.

@grafikrobot
Copy link
Member

The defaults are currently "hard-wired" per platform. Hence the only way to tailor is to configure your actual toolset in a user-config.jam or site-config.jam. Although now that clang is becoming more prevalent as a system compiler it's worth revisiting smarter selection of the default.

@stale
Copy link

stale bot commented May 29, 2021

Thank you for your contributions. Main development of B2 has moved to https://github.com/bfgroup/b2
This issue has been automatically marked as "transition" to indicate the potential for needing transition to the new B2 development project.

@stale stale bot added the transition Transition to bfgroup/b2 label May 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement transition Transition to bfgroup/b2
Projects
None yet
Development

No branches or pull requests

2 participants