LLVM now requires C++14.

Patch by Lang Hames.
This commit is contained in:
Vassil Vassilev 2022-03-24 07:22:55 +00:00 committed by jenkins
parent a656f18868
commit a804b3d9eb
2 changed files with 2 additions and 2 deletions

View File

@ -250,7 +250,7 @@ if(CLING_ENABLE_WARNINGS AND NOT LLVM_ENABLE_WARNINGS AND (LLVM_COMPILER_IS_GCC_
# Release() (PR32286).
if (NOT CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32)
set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -std=c++11 -Werror=non-virtual-dtor")
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -std=c++14 -Werror=non-virtual-dtor")
CHECK_CXX_SOURCE_COMPILES("class base {public: virtual void anchor();protected: ~base();};
class derived final : public base { public: ~derived();};
int main() { return 0; }"

View File

@ -12,7 +12,7 @@ cmake_minimum_required(VERSION 3.5)
set(LLVM_NO_DEAD_STRIP 1)
# Cling needs at least C++11; so does this demo.
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (CMAKE_PROJECT_NAME)