diff options
author | Jan Vorlicek <janvorli@microsoft.com> | 2016-02-04 22:20:24 +0100 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2016-02-05 02:09:08 +0100 |
commit | a5af1dd99a3567fb753416ef382ad6409b22f031 (patch) | |
tree | a4ec48b2981106c5ed3b2a904836bbff48d33dfa /CMakeLists.txt | |
parent | 652ee28c44e94f99a56e3be925f4d70b2344c72a (diff) | |
download | coreclr-a5af1dd99a3567fb753416ef382ad6409b22f031.tar.gz coreclr-a5af1dd99a3567fb753416ef382ad6409b22f031.tar.bz2 coreclr-a5af1dd99a3567fb753416ef382ad6409b22f031.zip |
Fix checked build optimization
The initialization of the checked build compiler flags in the compiler
override files had no effect, since cmake handles the _INIT variables
only for the four standard configurations.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1859ac2083..c45c8723df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -243,8 +243,9 @@ endfunction() if (CMAKE_CONFIGURATION_TYPES) # multi-configuration generator? set(CMAKE_CONFIGURATION_TYPES "Debug;Checked;Release;RelWithDebInfo" CACHE STRING "" FORCE) endif (CMAKE_CONFIGURATION_TYPES) -set(CMAKE_C_FLAGS_CHECKED "") -set(CMAKE_CXX_FLAGS_CHECKED "") + +set(CMAKE_C_FLAGS_CHECKED ${CLR_C_FLAGS_CHECKED_INIT} CACHE STRING "Flags used by the compiler during checked builds.") +set(CMAKE_CXX_FLAGS_CHECKED ${CLR_CXX_FLAGS_CHECKED_INIT} CACHE STRING "Flags used by the compiler during checked builds.") set(CMAKE_EXE_LINKER_FLAGS_CHECKED "") set(CMAKE_SHARED_LINKER_FLAGS_CHECKED "") |