Archived
1
0
forked from rarias/bscpkgs

Remove wrapper flags when clang called from intel

This commit is contained in:
2025-07-18 18:48:22 +02:00
parent 672b84359f
commit 148fae48ee
2 changed files with 22 additions and 1 deletions

View File

@@ -147,6 +147,10 @@ stdenvNoCC.mkDerivation (finalAttrs: {
ln -s $out/bin/icpx $out/bin/c++
ln -s $out/bin/icx $out/bin/cc
# Use this to detect when a compiler subprocess is called
# from icpx (--fsycl-host-compiler)
echo 'export "NIX_CC_WRAPPER_INTEL=1"' >> $out/nix-support/cc-wrapper-hook
sed -i 's/.*isCxx=0/isCxx=1/' $out/bin/icpx
# oneMath looks for sycl libraries in bin/../lib