ci(clang-tidy): disable pch

This would previously make most of our files error out with
`error: __OPTIMIZE__ predefined macro was enabled in PCH file but is currently disabled`

Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
Seth Flynn 2026-03-07 03:25:25 -05:00
parent 33056c913d
commit 067a992378
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86

View file

@ -37,9 +37,10 @@ jobs:
uses: cachix/install-nix-action@v31
- name: Run build
# TODO(@getchoo): Figure out how to make this work with PCH
run: |
nix develop --command bash -c '
cmake -B build -D CMAKE_CXX_COMPILER_LAUNCHER=sccache && cmake --build build
cmake -B build -D Launcher_USE_PCH=OFF -D CMAKE_CXX_COMPILER_LAUNCHER=sccache && cmake --build build
'
# TODO: Use SARIF after https://github.com/psastras/sarif-rs/issues/638 is fixed