mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-23 22:00:10 +00:00
[libc++][hardening] Fix references to old names for hardening modes (#71743)
This should fix some builds broken by https://github.com/llvm/llvm-project/pull/70575
This commit is contained in:
parent
950f68991f
commit
4a9c71b8c2
@ -81,7 +81,7 @@ if(APPLE)
|
||||
set(LIBCXX_ABI_VERSION 2 CACHE STRING "")
|
||||
set(LIBCXX_ENABLE_SHARED OFF CACHE BOOL "")
|
||||
set(LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "")
|
||||
set(LIBCXX_HARDENING_MODE "unchecked" CACHE STRING "")
|
||||
set(LIBCXX_HARDENING_MODE "none" CACHE STRING "")
|
||||
set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
|
||||
set(RUNTIMES_CMAKE_ARGS "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13;-DCMAKE_OSX_ARCHITECTURES=arm64|x86_64" CACHE STRING "")
|
||||
endif()
|
||||
|
@ -116,7 +116,7 @@ else()
|
||||
set(LIBCXX_ABI_VERSION 2 CACHE STRING "")
|
||||
set(LIBCXX_ENABLE_SHARED OFF CACHE BOOL "")
|
||||
set(LIBCXX_ENABLE_STATIC_ABI_LIBRARY ON CACHE BOOL "")
|
||||
set(LIBCXX_HARDENING_MODE "unchecked" CACHE STRING "")
|
||||
set(LIBCXX_HARDENING_MODE "none" CACHE STRING "")
|
||||
set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
|
||||
set(LLVM_ENABLE_RUNTIMES "compiler-rt;libcxx;libcxxabi;libunwind" CACHE STRING "")
|
||||
set(RUNTIMES_CMAKE_ARGS "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13;-DCMAKE_OSX_ARCHITECTURES=arm64|x86_64" CACHE STRING "")
|
||||
|
@ -111,12 +111,12 @@ if( LLVM_ENABLE_ASSERTIONS )
|
||||
endif()
|
||||
# Enable assertions in libstdc++.
|
||||
add_compile_definitions(_GLIBCXX_ASSERTIONS)
|
||||
# Cautiously enable the safe hardened mode in libc++.
|
||||
# Cautiously enable the extensive hardening mode in libc++.
|
||||
if((DEFINED LIBCXX_HARDENING_MODE) AND
|
||||
(NOT LIBCXX_HARDENING_MODE STREQUAL "safe"))
|
||||
message(WARNING "LLVM_ENABLE_ASSERTIONS implies LIBCXX_HARDENING_MODE \"safe\" but is overriden from command line with value \"${LIBCXX_HARDENING_MODE}\".")
|
||||
(NOT LIBCXX_HARDENING_MODE STREQUAL "extensive"))
|
||||
message(WARNING "LLVM_ENABLE_ASSERTIONS implies LIBCXX_HARDENING_MODE \"extensive\" but is overriden from command line with value \"${LIBCXX_HARDENING_MODE}\".")
|
||||
else()
|
||||
set(LIBCXX_HARDENING_MODE "safe")
|
||||
set(LIBCXX_HARDENING_MODE "extensive")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user