File tree Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 9696 -DLLVM_PARALLEL_LINK_JOBS=1 ../cmake/superbuild \
9797 -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache \
9898 -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc \
99+ -DCMAKE_CXX_STANDARD=14 \
99100 -DOPTSCHEDSUPER_LLVM_EXTRA_CMAKE_ARGS='-DLLVM_ENABLE_ASSERTIONS=ON' \
100101 -DOPTSCHED_EXTRA_DEFINITIONS='-DIS_DEBUG'
101102
@@ -188,6 +189,7 @@ jobs:
188189 cmake ../llvm-project/llvm -GNinja -DCMAKE_BUILD_TYPE=Debug \
189190 -DCMAKE_CXX_COMPILER=g++ \
190191 -DCMAKE_C_COMPILER=gcc \
192+ -DCMAKE_CXX_STANDARD=14 \
191193 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
192194 '-DLLVM_TARGETS_TO_BUILD=X86;AMDGPU' \
193195 -DLLVM_TABLEGEN=$(which llvm-tblgen-7) \
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.4.3 )
1+ cmake_minimum_required (VERSION 3.8 )
22
33project (OptSched)
44
Original file line number Diff line number Diff line change @@ -58,4 +58,5 @@ add_optsched_library(OptSched
5858 ${OPTSCHED_SRCS}
5959 LINK_LIBS ${OPTSCHED_LINK_LIBS}
6060)
61+ target_compile_features (OptSched PUBLIC cxx_std_14) # We need >= C++14
6162add_dependencies (OptSched ${OPTSCHED_TARGET_DEPS} )
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ endfunction()
1010
1111# All unit test targets depend on OptSched
1212add_library (UnitTest.OptSched STATIC $<TARGET_OBJECTS:obj.OptSched>)
13+ target_compile_features (UnitTest.OptSched PUBLIC cxx_std_14)
1314link_libraries (UnitTest.OptSched)
1415
1516add_subdirectory (Basic)
You can’t perform that action at this time.
0 commit comments