Commit cc45a6a
committed
cmake: warn on stale SOURCEMETA_CXX_CLANG_TIDY in macOS build cache
Address cubic/augment reviewer feedback on #2467: the prior commit
only set `SOURCEMETA_CXX_CLANG_TIDY` in the cache when it was unset,
so an existing build directory whose cache already pointed at a real
clang-tidy binary would silently bypass the carve-out and keep
hitting the Xcode 16 `arm_neon.h` parser error on incremental
builds.
Emit a `CMake WARNING` in that situation directing the developer to
either `cmake --fresh` or pass
`-DSOURCEMETA_CXX_CLANG_TIDY=/usr/bin/true` explicitly. Fresh CI
configures hit the original `NOT SOURCEMETA_CXX_CLANG_TIDY` branch
and get the intended no-op behaviour as before.
Signed-off-by: SouptikH <haldersouptik@gmail.com>1 parent 03b4920 commit cc45a6a
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
17 | 26 | | |
18 | 27 | | |
19 | 28 | | |
| |||
0 commit comments