Propagate C flags to LLVM/Clang CMake command (up to now we only propagated C++ flags). Useful to fix one ASan failing test, should be harmless for everything else.

Swift SVN r19093
This commit is contained in:
Kuba Brecka
2014-06-23 17:05:00 +00:00
parent 3cdc901354
commit aa1f68dada

View File

@@ -344,6 +344,7 @@ if [ \! "$SKIP_BUILD_LLVM" ]; then
# LLDB
(cd "${LLVM_BUILD_DIR}" &&
"$CMAKE" -G "${CMAKE_GENERATOR}" "${COMMON_CMAKE_OPTIONS[@]}" \
-DCMAKE_C_FLAGS="${CMAKE_C_FLAGS}" \
-DCMAKE_CXX_FLAGS="-stdlib=libc++ ${CMAKE_CXX_FLAGS}" \
-DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++ ${CMAKE_EXE_LINKER_FLAGS}" \
-DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libc++ ${CMAKE_SHARED_LINKER_FLAGS}" \