fix oneapi

This commit is contained in:
陈浩南 2024-09-21 03:40:30 +08:00
parent de89197a4a
commit a66eb7e404

View File

@ -200,6 +200,7 @@ let
libxml2 libxml2
hwloc hwloc
stdenv.cc.cc.lib stdenv.cc.cc.lib
zlib
]; ];
nativeBuildInputs = [ autoPatchelfHook ]; nativeBuildInputs = [ autoPatchelfHook ];
@ -397,6 +398,8 @@ let
echo "-L${intel-compiler-shared}/lib" >> $out/nix-support/cc-ldflags echo "-L${intel-compiler-shared}/lib" >> $out/nix-support/cc-ldflags
echo "-L${cc}/lib" >> $out/nix-support/cc-ldflags echo "-L${cc}/lib" >> $out/nix-support/cc-ldflags
cp ${mygcc}/nix-support/cc-cflags-before $out/nix-support
# Need the gcc in the path # Need the gcc in the path
echo 'export "PATH=${mygcc}/bin:$PATH"' >> $out/nix-support/cc-wrapper-hook echo 'export "PATH=${mygcc}/bin:$PATH"' >> $out/nix-support/cc-wrapper-hook