Skip to content

Commit

Permalink
try clang-16
Browse files Browse the repository at this point in the history
  • Loading branch information
savnadya committed Jun 15, 2024
1 parent b79ffee commit c1cd4f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
-DCMAKE_TOOLCHAIN_FILE=../ytsaurus-cpp-sdk/clang.toolchain \
-DCMAKE_C_COMPILER_LAUNCHER=ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DREQUIRED_LLVM_TOOLING_VERSION=14 \
-DREQUIRED_LLVM_TOOLING_VERSION=16 \
../ytsaurus-cpp-sdk
export CCACHE_BASEDIR="$(realpath ..)"
Expand Down
12 changes: 6 additions & 6 deletions clang.toolchain
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
set(CMAKE_C_COMPILER clang-14)
set(CMAKE_CXX_COMPILER clang++-14)
set(CMAKE_C_COMPILER clang-16)
set(CMAKE_CXX_COMPILER clang++-16)

set(CMAKE_C_STANDARD_LIBRARIES "-lc -lm")
set(CMAKE_CXX_STANDARD_LIBRARIES "-lc -lm")

set(ENV{CC} clang-14)
set(ENV{CXX} clang++-14)
set(ENV{CC} clang-16)
set(ENV{CXX} clang++-16)

set(CMAKE_EXE_LINKER_FLAGS -fuse-ld=lld-14)
set(CMAKE_SHARED_LINKER_FLAGS -fuse-ld=lld-14)
set(CMAKE_EXE_LINKER_FLAGS -fuse-ld=lld-16)
set(CMAKE_SHARED_LINKER_FLAGS -fuse-ld=lld-16)

set(CMAKE_POSITION_INDEPENDENT_CODE On)

Expand Down

0 comments on commit c1cd4f1

Please sign in to comment.