Replies: 1 comment 1 reply
-
B2 currently doesn't support C++ modules. As far as I can see, the script you've written will break if b2 is invoked from a directory that is different from the project root (e.g. in a subproject). For that to work a module mapper would have to be used. Although, maybe -fsearch-include-path can also work. Also, I suspect that if you request several different configurations your script will break too. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The gcc 16.0 I built from gcc git repo has improved c++ modules support greatly. I see b2 build library property can not manage the module unit dependencies correctly. And I see the obj rule and dependency property together can manage the module unit dependencies, just need more b2 jamfile code. The following code can work correctly. Is there a more elegant and better way to manage c++ modules, how does b2 build support c++ modules better.
jamroot
primary.cpp
specialization.cpp
interface.cpp
specialization-src.cpp
main.cpp
Beta Was this translation helpful? Give feedback.
All reactions