Commit 8a43ba7
ci: use CC/CXX=sccache cl on Windows to cache DuckDB C++ builds
CC_WRAPPER didn't work because the cc crate doesn't check that env var.
The real issue: when the cc crate finds MSVC cl.exe via find_msvc_tools,
it bypasses the RUSTC_WRAPPER-based sccache fallback that works on Linux.
Setting CC/CXX='sccache cl' on Windows makes the cc crate's env_tool
parser recognize "sccache" as a known wrapper and "cl" as the compiler.
This routes the ~21-minute libduckdb-sys C++ build through sccache.
First run will still be slow (cache seeding), but subsequent runs should
see C/C++ cache hits and significantly faster Windows builds.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 28ce403 commit 8a43ba7
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
| |||
0 commit comments