mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
make sccache available for all cmake users, not only CI
if you have it in your path, the build will use Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
committed by
majcosta
co-authored by
Claude Opus 4.8
parent
f99786e195
commit
b6c79dbead
@@ -201,9 +201,7 @@ jobs:
|
||||
run: |
|
||||
# sccache can only cache MSVC objects when the debug information is embedded
|
||||
# in them (/Z7) instead of collected in a shared PDB (/Zi, the CMake default)
|
||||
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DApplications="$Env:JA2Application" `
|
||||
-DCMAKE_POLICY_DEFAULT_CMP0141=NEW -DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded `
|
||||
-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
|
||||
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DApplications="$Env:JA2Application"
|
||||
- name: Build
|
||||
run: |
|
||||
cmake --build build/ -- -v
|
||||
|
||||
Reference in New Issue
Block a user