mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
[CMake] Fix cache invalidation of LLVM_CXX_STD
This cleans up fallout from https://reviews.llvm.org/D66195. llvm-svn: 368897
This commit is contained in:
parent
b73bd7c308
commit
ed1783018c
@ -23,8 +23,11 @@ set(LLVM_CXX_STD_default "c++14")
|
||||
if (LLVM_ENABLE_CXX1Z)
|
||||
set(LLVM_CXX_STD_default "c++1z")
|
||||
endif()
|
||||
if (LLVM_CXX_STD STREQUAL "c++11")
|
||||
set(LLVM_CXX_STD_force FORCE)
|
||||
endif()
|
||||
set(LLVM_CXX_STD ${LLVM_CXX_STD_default}
|
||||
CACHE STRING "C++ standard to use for compilation.")
|
||||
CACHE STRING "C++ standard to use for compilation." ${LLVM_CXX_STD_force})
|
||||
|
||||
set(LLVM_ENABLE_LTO OFF CACHE STRING "Build LLVM with LTO. May be specified as Thin or Full to use a particular kind of LTO")
|
||||
string(TOUPPER "${LLVM_ENABLE_LTO}" uppercase_LLVM_ENABLE_LTO)
|
||||
|
Loading…
Reference in New Issue
Block a user