Skip to content

Commit

Permalink
WIP: Use vku with vcpkg overlays.
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe2933 committed Jul 21, 2024
1 parent 964fcde commit 64d3cba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ jobs:
-DCMAKE_CXX_COMPILER="/usr/bin/clang++-18" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE="$VCPKG_INSTALLATION_ROOT/scripts/buildsystems/vcpkg.cmake" \
-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=".github/workflows/x64-linux-clang.cmake" \
-DVCPKG_OVERLAY_TRIPLETS=".github/workflows/triplets" \
-DVCPKG_TARGET_TRIPLET="x64-linux-clang" \
-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=".github/workflows/triplets/clang-toolchain.cmake" \
-DCMAKE_CXX_FLAGS="-stdlib=libc++" \
-DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++ -lc++abi"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/triplets/clang-toolchain.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
set(CMAKE_C_COMPILER /usr/bin/clang-18)
set(CMAKE_CXX_COMPILER /usr/bin/clang++-18)
7 changes: 5 additions & 2 deletions .github/workflows/x64-linux-clang.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
set(CMAKE_C_COMPILER /usr/bin/clang-18)
set(CMAKE_CXX_COMPILER /usr/bin/clang++-18)
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE static)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE .github/workflows/triplets/clang-toolchain.cmake)

0 comments on commit 64d3cba

Please sign in to comment.