Skip to content

chore: move b2 project requirements out of build.jam - #433

Merged
HDembinski merged 1 commit into
boostorg:developfrom
henryiii:fix-local-visibility
Jul 23, 2026
Merged

HDembinski merged 1 commit into
boostorg:developfrom
henryiii:fix-local-visibility

Conversation

@henryiii

@henryiii henryiii commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

I do not know much about b2, but this was able to make a super project checkout and recreated the original issue, and this fix fixes it.

🤖 AI text below 🤖

Fixes #425.

<local-visibility>hidden in the global project requirements leaks into the install targets that boost-library generates and breaks alternative selection when building the Boost superproject. The warning flags, /bigobj, and hidden visibility only matter when compiling tests and examples, so this moves all requirements (and the <warnings>extra default-build) into test/Jamfile and examples/Jamfile, leaving project /boost/histogram ; as suggested in the issue.

The hidden-visibility setting dates back to #361, where it was added so the tests compile the way Python-wheel builds do; keeping it in the test/example projects preserves that.

Verified in a fresh superproject checkout: b2 -n libs/histogram//install-libraries-shared reproduces the no match: <local-visibility>hidden output before the change (also on macOS) and resolves cleanly after; test compiles still get -fvisibility=hidden -fvisibility-inlines-hidden, and test//minimal passes.

<local-visibility>hidden as a global project requirement leaks into the
install targets that boost-library generates and breaks alternative
selection when building the Boost superproject. The warning flags,
/bigobj, and hidden visibility only matter when compiling tests and
examples, so move them into test/Jamfile and examples/Jamfile.

Fixes boostorg#425

Assisted-by: ClaudeCode:claude-fable-5
@henryiii henryiii changed the title Move b2 project requirements out of build.jam chore: move b2 project requirements out of build.jam Jul 23, 2026
@HDembinski
HDembinski merged commit 2193e29 into boostorg:develop Jul 23, 2026
9 checks passed
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.

<local-visibility>hidden in build.jam creates problems when building Boost

2 participants