diff options
author | Martin Storsjö <martin@martin.st> | 2023-07-17 11:16:05 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2023-07-19 11:25:28 +0300 |
commit | 9f4dfcb795bb0ecf9944553f49371164801cd83f (patch) | |
tree | 0a5cd3b23b3ed2b5f03e2350728600fdbf693e06 /compiler-rt | |
parent | 2ea5aa1c96cfb15ece9a665f0d59d6c9fa1365f0 (diff) | |
download | llvm-9f4dfcb795bb0ecf9944553f49371164801cd83f.zip llvm-9f4dfcb795bb0ecf9944553f49371164801cd83f.tar.gz llvm-9f4dfcb795bb0ecf9944553f49371164801cd83f.tar.bz2 |
[CMake] Clean up old code for handling MSVC runtime setting the old way
This was left in place to reduce the risk of breaking anything,
and to keep the diff smaller, in D155233.
Differential Revision: https://reviews.llvm.org/D155431
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/CMakeLists.txt | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt index fd0430e..1545340 100644 --- a/compiler-rt/CMakeLists.txt +++ b/compiler-rt/CMakeLists.txt @@ -389,17 +389,6 @@ endif() if(MSVC) # FIXME: In fact, sanitizers should support both /MT and /MD, see PR20214. set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded) - # Remove any /M[DT][d] flags, and strip any definitions of _DEBUG. - # TODO: We probably could remove this altogether. - foreach(flag_var - CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE - CMAKE_C_FLAGS_MINSIZEREL CMAKE_C_FLAGS_RELWITHDEBINFO - CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE - CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO) - string(REGEX REPLACE "[/-]M[DT]d" "" ${flag_var} "${${flag_var}}") - string(REGEX REPLACE "[/-]MD" "" ${flag_var} "${${flag_var}}") - string(REGEX REPLACE "[/-]D_DEBUG" "" ${flag_var} "${${flag_var}}") - endforeach() append_list_if(COMPILER_RT_HAS_Oy_FLAG /Oy- SANITIZER_COMMON_CFLAGS) append_list_if(COMPILER_RT_HAS_GS_FLAG /GS- SANITIZER_COMMON_CFLAGS) |