@@ -18,17 +18,6 @@ else()
18
18
set (LINKER_IS_LLD_LINK FALSE )
19
19
endif ()
20
20
21
- set (LLVM_CXX_STD_default "c++14" )
22
- # Preserve behaviour of legacy cache variables
23
- if (LLVM_ENABLE_CXX1Z)
24
- set (LLVM_CXX_STD_default "c++1z" )
25
- endif ()
26
- if (LLVM_CXX_STD STREQUAL "c++11" )
27
- set (LLVM_CXX_STD_force FORCE)
28
- endif ()
29
- set (LLVM_CXX_STD ${LLVM_CXX_STD_default}
30
- CACHE STRING "C++ standard to use for compilation." ${LLVM_CXX_STD_force} )
31
-
32
21
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" )
33
22
string (TOUPPER "${LLVM_ENABLE_LTO} " uppercase_LLVM_ENABLE_LTO)
34
23
@@ -445,23 +434,6 @@ if ( LLVM_COMPILER_IS_GCC_COMPATIBLE OR CMAKE_CXX_COMPILER_ID MATCHES "XL" )
445
434
add_flag_if_supported("-Werror=unguarded-availability-new" WERROR_UNGUARDED_AVAILABILITY_NEW)
446
435
endif ( LLVM_COMPILER_IS_GCC_COMPATIBLE OR CMAKE_CXX_COMPILER_ID MATCHES "XL" )
447
436
448
- # C++ language standard selection for compilers accepting the GCC-style option:
449
- if ( LLVM_COMPILER_IS_GCC_COMPATIBLE OR CMAKE_CXX_COMPILER_ID MATCHES "XL" )
450
- check_cxx_compiler_flag("-std=${LLVM_CXX_STD} " CXX_SUPPORTS_CXX_STD)
451
- if (CXX_SUPPORTS_CXX_STD)
452
- if (CYGWIN OR MINGW)
453
- # MinGW and Cygwin are a bit stricter and lack things like
454
- # 'strdup', 'stricmp', etc in c++11 mode.
455
- string (REPLACE "c++" "gnu++" gnu_LLVM_CXX_STD "${LLVM_CXX_STD} " )
456
- append ("-std=${gnu_LLVM_CXX_STD} " CMAKE_CXX_FLAGS )
457
- else ()
458
- append ("-std=${LLVM_CXX_STD} " CMAKE_CXX_FLAGS )
459
- endif ()
460
- else ()
461
- message (FATAL_ERROR "The host compiler does not support '-std=${LLVM_CXX_STD} '." )
462
- endif ()
463
- endif ( LLVM_COMPILER_IS_GCC_COMPATIBLE OR CMAKE_CXX_COMPILER_ID MATCHES "XL" )
464
-
465
437
# Modules enablement for GCC-compatible compilers:
466
438
if ( LLVM_COMPILER_IS_GCC_COMPATIBLE AND LLVM_ENABLE_MODULES )
467
439
set (OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} )
0 commit comments