Index: llvm/utils/benchmark/CMakeLists.txt =================================================================== --- llvm/utils/benchmark/CMakeLists.txt +++ llvm/utils/benchmark/CMakeLists.txt @@ -131,12 +131,7 @@ set(CMAKE_EXE_LINKER_FLAGS_MINSIZEREL "${CMAKE_EXE_LINKER_FLAGS_MINSIZEREL} /LTCG") endif() else() - # Try and enable C++11. Don't use C++14 because it doesn't work in some - # configurations. - add_cxx_compiler_flag(-std=c++11) - if (NOT HAVE_CXX_FLAG_STD_CXX11) - add_cxx_compiler_flag(-std=c++0x) - endif() + add_cxx_compiler_flag(-std=c++14) # Turn compiler warnings up to 11 add_cxx_compiler_flag(-Wall)