Fix clang cross-build

This commit is contained in:
2025-07-15 17:12:29 +02:00
committed by Aleix Boné
parent 1178574891
commit 06aa1fc5d4
3 changed files with 23 additions and 15 deletions

View File

@@ -56,7 +56,8 @@ in wrapCCWith {
echo "--gcc-toolchain=${gcc}" >> $out/nix-support/cc-cflags
wrap clang++ $wrapper $ccPath/clang++
wrap ${targetConfig}clang++ $wrapper $ccPath/clang++
wrap ${targetConfig}clang $wrapper $ccPath/clang
'' + optionalString (openmp != null) ''
echo "export OPENMP_RUNTIME=${ompname}" >> $out/nix-support/cc-wrapper-hook