-
Notifications
You must be signed in to change notification settings - Fork 73
Add support for modular build structure. #401
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
Draft
grafikrobot
wants to merge
26
commits into
boostorg:develop
Choose a base branch
from
grafikrobot:modular
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
fa58a7d
Make the library modular usable.
grafikrobot 558e940
Sync from upstream.
grafikrobot 5c2aae0
Add missing build.jam.
grafikrobot 73322d8
Sync from upstream.
grafikrobot 6a8ded2
Add requires-b2 check to top-level build file.
grafikrobot 742c1fc
Bump B2 require to 5.2
grafikrobot 2e23333
Change all <source> references to <library>.
grafikrobot 6fd1394
Move inter-lib dependencies to a project variable and into the build …
grafikrobot 0215543
Update build deps.
grafikrobot e159009
Change math dep real target math/tr1.
grafikrobot de48f63
Tweak GHA CI to use default compilers.
grafikrobot dad84fd
Avoid another warning from math.
grafikrobot 3d32bf8
Avoid another warning from math.
grafikrobot e6d9250
Move include to target.
grafikrobot 3259c75
Update dependencies.
grafikrobot f3e62dc
Add command output to slow tests for debugging build problems.
grafikrobot 90778c2
Use b2 property instead of direct flag.
grafikrobot 3791d5e
Always use latest macos image.
grafikrobot 31015c6
Fix dnagling reference warning/error.
grafikrobot da68b50
Revert: Fix dangling reference warning/error.
grafikrobot ee9453b
Bump cov gcc version to match what's in the OS.
grafikrobot 4456293
ignores
HDembinski c713d7a
boost-serialization is optional
HDembinski daf49a6
fix
HDembinski cb08d27
attempted fix
HDembinski f695ea9
Try and force the tests to build.
grafikrobot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright René Ferdinand Rivera Morell 2024 | ||
# Distributed under the Boost Software License, Version 1.0. | ||
# (See accompanying file LICENSE_1_0.txt or copy at | ||
# http://www.boost.org/LICENSE_1_0.txt) | ||
|
||
require-b2 5.2 ; | ||
|
||
# Special builds for Boost Histogram: | ||
# | ||
# Generate coverage data: b2 cxxstd=latest coverage=on test//all | ||
# Test without exceptions and rtti: b2 cxxstd=latest exception-handling=off rtti=off test//minimal | ||
# Test with sanitizers: b2 toolset=clang cxxstd=latest histogram_ubasan test | ||
|
||
# boost/serialization and boost/math must not be included here, they are optional dependencies | ||
constant boost_dependencies : | ||
/boost/config//boost_config | ||
/boost/core//boost_core | ||
/boost/mp11//boost_mp11 | ||
/boost/throw_exception//boost_throw_exception | ||
/boost/variant2//boost_variant2 ; | ||
|
||
project /boost/histogram | ||
: requirements | ||
<toolset>clang:<cxxflags>"-Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion" | ||
<toolset>darwin:<cxxflags>"-Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wvexing-parse -Wfloat-conversion" | ||
<toolset>gcc:<cxxflags>"-Wsign-compare -Wstrict-aliasing -fstrict-aliasing -Wfloat-conversion" | ||
<toolset>msvc:<cxxflags>"/bigobj" | ||
<toolset>intel-win:<cxxflags>"/bigobj" | ||
<local-visibility>hidden | ||
: default-build | ||
<warnings>extra | ||
; | ||
|
||
explicit | ||
[ alias boost_histogram : : : | ||
: <include>include <library>$(boost_dependencies) ] | ||
[ alias all : boost_histogram test examples ] | ||
; | ||
|
||
call-if : boost-library histogram | ||
; | ||
|
||
path-constant THIS_PATH : . ; | ||
|
||
# only works with clang because of -fsanitize-blacklist | ||
variant histogram_ubasan : debug : | ||
<cxxflags>"-fno-omit-frame-pointer -O0 -fno-inline -fsanitize=address,leak,undefined -fno-sanitize-recover=all -fsanitize-blacklist=$(THIS_PATH)/tools/blacklist.supp" | ||
<linkflags>"-fsanitize=address,leak,undefined" | ||
; | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should you remove that to mirror the b2 side where math is optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, but it does cause so many problems, because it is header only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I failed to parse that sentence. :-( Just saying the it's preferred to be consistent between the two build systems.