Skip to content

Commit

Permalink
Require C++14
Browse files Browse the repository at this point in the history
  • Loading branch information
Quincunx271 committed Aug 23, 2021
1 parent 82aead9 commit 16ea595
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ jobs:
-DLLVM_PARALLEL_LINK_JOBS=1 ../cmake/superbuild \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_STANDARD=14 \
-DOPTSCHEDSUPER_LLVM_EXTRA_CMAKE_ARGS='-DLLVM_ENABLE_ASSERTIONS=ON' \
-DOPTSCHED_EXTRA_DEFINITIONS='-DIS_DEBUG'
Expand Down Expand Up @@ -188,6 +189,7 @@ jobs:
cmake ../llvm-project/llvm -GNinja -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_COMPILER=g++ \
-DCMAKE_C_COMPILER=gcc \
-DCMAKE_CXX_STANDARD=14 \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
'-DLLVM_TARGETS_TO_BUILD=X86;AMDGPU' \
-DLLVM_TABLEGEN=$(which llvm-tblgen-7) \
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.4.3)
cmake_minimum_required(VERSION 3.8)

project(OptSched)

Expand Down
1 change: 1 addition & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ add_optsched_library(OptSched
${OPTSCHED_SRCS}
LINK_LIBS ${OPTSCHED_LINK_LIBS}
)
target_compile_features(OptSched PUBLIC cxx_std_14) # We need >= C++14
add_dependencies(OptSched ${OPTSCHED_TARGET_DEPS})

0 comments on commit 16ea595

Please sign in to comment.