[LLVMdev] [PATCH] MSVC: Allow choosing different CRT for different build types
nobled
nobled at dreamwidth.org
Mon Aug 2 16:28:01 PDT 2010
This patch splits LLVM_USE_CRT into new CMake variables
LLVM_USE_CRT_DEBUG, LLVM_USE_CRT_RELEASE, etc (one for each build
type). It also automatically detects which CRT was already chosen by
CMake's defaults in the CMAKE_CXX_FLAGS_* variables, and defaults to
those values.
(Before, it was using add_llvm_definitions(), which worked...somehow,
but CMAKE_CXX_FLAGS_RELEASE and friends were still defining their own
CRT flag. Now it edits the FLAGS variables instead.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: add-build-config-crt-selection-v4.patch
Type: text/x-patch
Size: 4950 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100802/1c8f91a1/attachment.bin>
More information about the llvm-dev
mailing list