Skip to content
Snippets Groups Projects
Commit d0b31bb5 authored by Bertrand Bellenot's avatar Bertrand Bellenot
Browse files

Fix build of llvm in Release mode for multi-configuration generators (Visual Studio and Xcode)

parent 39b4d574
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ if(builtin_llvm)
# in that case we set the flags for all configurations to the
# flags of the build type assigned to LLVM_BUILD_TYPE.
if(GENERATOR_IS_MULTI_CONFIG)
if(MSVC OR XCODE)
string(TOUPPER ${LLVM_BUILD_TYPE} LLVM_BUILD_TYPE)
set(LLVM_C_FLAGS ${CMAKE_C_FLAGS_${LLVM_BUILD_TYPE}})
set(LLVM_CXX_FLAGS ${CMAKE_CXX_FLAGS_${LLVM_BUILD_TYPE}})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment