Skip to content

Commit

Permalink
[CMake] Fix cache invalidation of LLVM_CXX_STD
Browse files Browse the repository at this point in the history
This cleans up fallout from https://reviews.llvm.org/D66195.

llvm-svn: 368897
  • Loading branch information
llvm-beanz committed Aug 14, 2019
1 parent ef56c7c commit a8e0703
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion llvm/cmake/modules/HandleLLVMOptions.cmake
Expand Up @@ -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)
Expand Down

0 comments on commit a8e0703

Please sign in to comment.