Pass platform flags to the SFDL preprocessor
Preprocessing depends on platform flags: they introduce compiler predefined macros. Platform flags also affect whether additional compiler flags (passed by user in CFLAGS, e.g.) are recognized.
Note: mandatory check (NEED_CHECK) was skipped
@@ -2025,7 +2025,7 @@ macro _SRC("fml3", SRC, SRCFLAGS...) {
}
macro _SRC("sfdl", SRC, SRCFLAGS...) {
- .CMD=$CXX_COMPILER $CXXFLAGS $SFDL_FLAG ${SRCFLAGS} ${input:SRC} && ${tool:"tools/calcstaticopt"} -i ${tmp:SRC.tmp} -a $ARCADIA_ROOT ${output;stdout;noext;defext=.inc:SRC} ${kv;hide:"p SF"} ${kv;hide:"pc yellow"} $TOOLCHAIN_ENV
+ .CMD=$CXX_COMPILER $C_FLAGS_PLATFORM $CXXFLAGS $SFDL_FLAG ${SRCFLAGS} ${input:SRC} && ${tool:"tools/calcstaticopt"} -i ${tmp:SRC.tmp} -a $ARCADIA_ROOT ${output;stdout;noext;defext=.inc:SRC} ${kv;hide:"p SF"} ${kv;hide:"pc yellow"} $TOOLCHAIN_ENV
}
macro _SRC("xs", SRC, SRCFLAGS...) {
