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
build: create Depends build type for depends and use it by default
Rather than modifying the existing build types and adding flags for each,
create a new type specifically for depends.
This allows the forwarding of optional flags into the CMake build for the
"Depends" build type, but the user can now optionally use an existing
(Debug/RelWitDebInfo/etc.) type to ignore the optimization flags set by depends
and use the ones from that type instead.
As an example, a user may do:
make -C depends
cmake --toolchain depends/arm64-apple-darwin/toolchain.cmake -DCMAKE_BUILD_TYPE=Debug
This would compile depends with the default optimization flags for depends
(-O2) but build Core with the default optimization flags from CMake.
Depends note:
For hosts, $host_*FLAGS variables now represent the mandatory flags for
compiling and will be forwarded to all Core builds in the toolchain file,
regardless of the build type. For most platforms they should be empty, but
are useful at least for darwin.
When setting (for example) CFLAGS from the command line when building depends,
these flags will be stored in $host_release_CFLAGS (or _debug_), and will only
be forwarded to the Depends build type.
0 commit comments