forked from OSchip/llvm-project
[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
ef56c7cdf0
commit
a8e070366a
|
@ -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