Add platform flags to BC compilation
Fast fix for -- adding platform flags to .bc compilation.
The 2nd issue from the ticket - with incorrect PEERDIR still remains
@@ -3007,12 +3007,12 @@ macro GENERATED_SRCS(PARSE_META_FROM{input}[], OUTPUT_INCLUDES[], TEMPLATES...)
}
macro LLVM_COMPILE_CXX(Input, Output, Opts...) {
- .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS $GCCFILTER $CLANG_ROOT/bin/clang++ ${pre=-I:INCLUDE} $CXXFLAGS -Wno-unknown-warning-option $LLVM_OPTS -emit-llvm -c ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p BC"} ${kv;hide:"pc light-green"}
+ .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS $GCCFILTER $CLANG_ROOT/bin/clang++ ${pre=-I:INCLUDE} $CXXFLAGS $C_FLAGS_PLATFORM -Wno-unknown-warning-option $LLVM_OPTS -emit-llvm -c ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p BC"} ${kv;hide:"pc light-green"}
PEERDIR(contrib/libs/clang)
}
macro LLVM_COMPILE_C(Input, Output, Opts...) {
- .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS $GCCFILTER $CLANG_ROOT/bin/clang ${pre=-I:INCLUDE} $CFLAGS $LLVM_OPTS -emit-llvm -c ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p BC"} ${kv;hide:"pc light-green"}
+ .CMD=$YMAKE_PYTHON ${input:"build/scripts/clang_wrapper.py"} $WINDOWS $GCCFILTER $CLANG_ROOT/bin/clang ${pre=-I:INCLUDE} $CFLAGS $C_FLAGS_PLATFORM $LLVM_OPTS -emit-llvm -c ${input:Input} -o ${output;noauto:Output} $Opts ${kv;hide:"p BC"} ${kv;hide:"pc light-green"}
PEERDIR(contrib/libs/clang)
}
