fix SYSINCL for NORUNTIME
@@ -147,11 +147,18 @@ when ($USE_INTERNAL_STL == "no") {
}
otherwise {
USE_INTERNAL_STL=yes
+ # This trigger doesn't work for module level since SYSINCL is processed at
+ # configuration stage (This means that NO_RUNTIME() macro called in ya.make
+ # won't affect SYSINCL and the only way to make this trigger work correctly
+ # is to define configuration varaible NORUNTIME (-DNORUNTIME) on the command
+ # line when `ya make ...` is invoked.
+ when ($NORUNTIME != "yes") {
SYSINCL+=build/sysincl/stl-to-libcxx.yml
when ($MUSL == "yes") {
SYSINCL+=build/sysincl/libc-musl-libcxx.yml
}
}
+}
CLANG_ALIGNED_ALLOCATION_FLAG=-faligned-allocation
when ($USE_STL_SYSTEM == "yes") {
