Apply CMake sccache helper to oneapi-math

This commit is contained in:
TheK0tYaRa 2026-03-17 23:16:38 +02:00
parent c1916d3fb8
commit 3cdc6bf978
2 changed files with 4 additions and 0 deletions

View file

@ -592,6 +592,9 @@ inline sycl::event submit_wait_on_events(sycl::queue q, const std::vector<sycl::
oneapi-math-sycl-blas = modify prev.oneapi-math-sycl-blas ( oneapi-math-sycl-blas = modify prev.oneapi-math-sycl-blas (
old: mkCmakeSccacheAttrs old old: mkCmakeSccacheAttrs old
); );
oneapi-math = modify prev.oneapi-math (
old: mkCmakeSccacheAttrs old
);
oneapi-dpl = oneapi-dpl =
let let
version = "2022.11.1"; version = "2022.11.1";

View file

@ -32,6 +32,7 @@
- The probe bypass must inspect `@responseFile` arguments as well, because the cc-wrapper often hides `CMakeFiles/CompilerId` paths inside response files before the inner `wrapped-sccache` sees them. - The probe bypass must inspect `@responseFile` arguments as well, because the cc-wrapper often hides `CMakeFiles/CompilerId` paths inside response files before the inner `wrapped-sccache` sees them.
- For CMake packages, the practical fallback is to export `SCCACHE_WRAPPED_COMPILER_PASSTHROUGH=1` for the whole `configurePhase` and unset it in `postConfigure`; caching matters in `buildPhase`, not in compiler-ID probes. - For CMake packages, the practical fallback is to export `SCCACHE_WRAPPED_COMPILER_PASSTHROUGH=1` for the whole `configurePhase` and unset it in `postConfigure`; caching matters in `buildPhase`, not in compiler-ID probes.
- Apply the shared CMake helper to stalled subpackages too, not just top-level wrappers. `oneapi-math-sycl-blas` is one such case. - Apply the shared CMake helper to stalled subpackages too, not just top-level wrappers. `oneapi-math-sycl-blas` is one such case.
- The same helper may also be needed on the outer package if the subpackage is fixed but the wrapper package then stalls at its own CMake configure.
- Build the patched `sccache` package. - Build the patched `sccache` package.
- Run a minimal hello-world derivation with the new `sccacheStdenv` and confirm repeated compiles produce cache hits. - Run a minimal hello-world derivation with the new `sccacheStdenv` and confirm repeated compiles produce cache hits.
- If that works, switch current consumers to the ccache-style path and remove obsolete wrapper-patching logic. - If that works, switch current consumers to the ccache-style path and remove obsolete wrapper-patching logic.