You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Configuration and building of a subproject or dependency via wrap is being done inconsistently.
Currently, configuration and tests are done with the default options of the base project, not forwarding any options set on the default_options parameter of the corresponding dependency or subproject call. Building is done with the default options of the subproject.
Where the compilation depends on compiler or target ABI's characteristics, such as Apple's -mmacosx-minimum-ver=10.15, the compilation can fail in unpredictable ways because of the mismatch.
To Reproduce
The example below applies whether it's a subproject() or a dependency(). To test for a subproject, replace the clause with
Compilation to succeed. Instead, I get the following error log (elided because it's really long).
A quick introspection reveals that there's something wrong with the flags being passed. The tests' C++ standard is clearly C++17, but the build's is clearly the compiler's default (which is C++03).
Describe the bug
Configuration and building of a subproject or dependency via wrap is being done inconsistently.
Currently, configuration and tests are done with the default options of the base project, not forwarding any options set on the
default_options
parameter of the correspondingdependency
orsubproject
call. Building is done with the default options of the subproject.Where the compilation depends on compiler or target ABI's characteristics, such as Apple's
-mmacosx-minimum-ver=10.15
, the compilation can fail in unpredictable ways because of the mismatch.To Reproduce
The example below applies whether it's a
subproject()
or adependency()
. To test for a subproject, replace the clause withmeson.build:
deps/substrate.wrap:
test.cpp:
Expected behavior
Compilation to succeed. Instead, I get the following error log (elided because it's really long).
A quick introspection reveals that there's something wrong with the flags being passed. The tests' C++ standard is clearly C++17, but the build's is clearly the compiler's default (which is C++03).
system parameters
meson --version
1.0.1ninja --version
if it's a Ninja build 1.11.1The text was updated successfully, but these errors were encountered: