File tree Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Expand file tree Collapse file tree 4 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 96
96
-DLLVM_PARALLEL_LINK_JOBS=1 ../cmake/superbuild \
97
97
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache \
98
98
-DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc \
99
+ -DCMAKE_CXX_STANDARD=14 \
100
+ -DLLVM_ENABLE_CXX1Y=ON \
99
101
-DOPTSCHEDSUPER_LLVM_EXTRA_CMAKE_ARGS='-DLLVM_ENABLE_ASSERTIONS=ON' \
100
102
-DOPTSCHED_EXTRA_DEFINITIONS='-DIS_DEBUG'
101
103
@@ -188,6 +190,7 @@ jobs:
188
190
cmake ../llvm-project/llvm -GNinja -DCMAKE_BUILD_TYPE=Debug \
189
191
-DCMAKE_CXX_COMPILER=g++ \
190
192
-DCMAKE_C_COMPILER=gcc \
193
+ -DCMAKE_CXX_STANDARD=14 \
191
194
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
192
195
'-DLLVM_TARGETS_TO_BUILD=X86;AMDGPU' \
193
196
-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 )
2
2
3
3
project (OptSched)
4
4
Original file line number Diff line number Diff line change @@ -58,4 +58,5 @@ add_optsched_library(OptSched
58
58
${OPTSCHED_SRCS}
59
59
LINK_LIBS ${OPTSCHED_LINK_LIBS}
60
60
)
61
+ target_compile_features (OptSched PUBLIC cxx_std_14) # We need >= C++14
61
62
add_dependencies (OptSched ${OPTSCHED_TARGET_DEPS} )
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ endfunction()
10
10
11
11
# All unit test targets depend on OptSched
12
12
add_library (UnitTest.OptSched STATIC $<TARGET_OBJECTS:obj.OptSched>)
13
+ target_compile_features (UnitTest.OptSched PUBLIC cxx_std_14)
13
14
link_libraries (UnitTest.OptSched)
14
15
15
16
add_subdirectory (Basic)
You can’t perform that action at this time.
0 commit comments