Skip to content

Commit

Permalink
.github/workflows/build_linux*: add GCC option "-fpch-preprocess"
Browse files Browse the repository at this point in the history
Another improvement for ccache with GCC+PCH, see ccache maual.
  • Loading branch information
MaxKellermann committed Feb 14, 2025
1 parent aff7f58 commit 8ad988a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_linux_x86.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ jobs:
cmake -G "Ninja" -DCMAKE_BUILD_TYPE="Nightly" \
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/Linux-GNU-x86.cmake \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_FLAGS="-fpch-preprocess" \
-DCMAKE_CXX_FLAGS="-fpch-preprocess" \
-S ./ -B ./build
- name: Ninja
run: ninja -C build -v
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build_linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
cmake -G "Ninja" -DCMAKE_BUILD_TYPE="Nightly" \
-DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/Linux-GNU-x86_64.cmake \
-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_C_FLAGS="-fpch-preprocess" \
-DCMAKE_CXX_FLAGS="-fpch-preprocess" \
-S ./ -B ./build
- name: Ninja
run: ninja -C build -v
Expand Down

0 comments on commit 8ad988a

Please sign in to comment.