WIP: Introduce Intel 2024, 2025, tasycl and oneMath #3
@ -46,14 +46,25 @@ let
 | 
				
			|||||||
    in (wrapCCWith {
 | 
					    in (wrapCCWith {
 | 
				
			||||||
      inherit cc;
 | 
					      inherit cc;
 | 
				
			||||||
      extraBuildCommands = ''
 | 
					      extraBuildCommands = ''
 | 
				
			||||||
        echo "-isystem ${cc}/include" >> $out/nix-support/cc-cflags
 | 
					 | 
				
			||||||
        echo "-isystem ${cc}/include/intel64" >> $out/nix-support/cc-cflags
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        echo "-L${gcc.cc}/lib/gcc/${targetConfig}/${gcc.version}" >> $out/nix-support/cc-ldflags
 | 
					        echo "-L${gcc.cc}/lib/gcc/${targetConfig}/${gcc.version}" >> $out/nix-support/cc-ldflags
 | 
				
			||||||
        echo "-L${gcc.cc.lib}/lib" >> $out/nix-support/cc-ldflags
 | 
					        echo "-L${gcc.cc.lib}/lib" >> $out/nix-support/cc-ldflags
 | 
				
			||||||
        echo "-L${cc}/lib" >> $out/nix-support/cc-ldflags
 | 
					        echo "-L${cc}/lib" >> $out/nix-support/cc-ldflags
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        echo "--gcc-toolchain=${gcc.cc}" >> $out/nix-support/libcxx-cxxflags
 | 
					        # echo "--gcc-toolchain=${gcc.cc}" >> $out/nix-support/libcxx-cxxflags
 | 
				
			||||||
 | 
					        echo "--gcc-toolchain=${gcc.cc}" >> $out/nix-support/cc-cflags
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # For some reason, If we don't resolve the realpath things go wrong
 | 
				
			||||||
 | 
					        for stddef in ${cc}/lib/clang/*/include/stddef.h ; do
 | 
				
			||||||
 | 
					          dir=$(dirname $(realpath "$stddef"))
 | 
				
			||||||
 | 
					          echo "-isystem $dir" >> $out/nix-support/cc-cflags
 | 
				
			||||||
 | 
					        done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        echo "-isystem ${cc}/include" >> $out/nix-support/cc-cflags
 | 
				
			||||||
 | 
					        echo "-isystem ${cc}/include/intel64" >> $out/nix-support/cc-cflags
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        for dir in ${gcc.cc}/lib/gcc/${targetConfig}/*/include; do
 | 
				
			||||||
 | 
					          echo "-isystem $dir" >> $out/nix-support/cc-cflags
 | 
				
			||||||
 | 
					        done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for dir in ${gcc.cc}/include/c++/*; do
 | 
					        for dir in ${gcc.cc}/include/c++/*; do
 | 
				
			||||||
          echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags
 | 
					          echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags
 | 
				
			||||||
@ -66,16 +77,8 @@ let
 | 
				
			|||||||
        # this ugly hack. See https://jungle.bsc.es/git/rarias/bscpkgs/issues/9
 | 
					        # this ugly hack. See https://jungle.bsc.es/git/rarias/bscpkgs/issues/9
 | 
				
			||||||
        echo 'path_backup="${gcc.cc}/bin:$path_backup"' >> $out/nix-support/cc-wrapper-hook
 | 
					        echo 'path_backup="${gcc.cc}/bin:$path_backup"' >> $out/nix-support/cc-wrapper-hook
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        # Disable hardening by default
 | 
					        # Disable hardening by default
 | 
				
			||||||
        echo "" > $out/nix-support/add-hardening.sh
 | 
					        echo "" > $out/nix-support/add-hardening.sh
 | 
				
			||||||
 | 
					 | 
				
			||||||
        # For some reason, If we don't resolve the realpath things go wrong
 | 
					 | 
				
			||||||
        for stddef in ${cc}/lib/clang/*/include/stddef.h ; do
 | 
					 | 
				
			||||||
          dir=$(dirname $(realpath "$stddef"))
 | 
					 | 
				
			||||||
          echo "-isystem $dir" >> $out/nix-support/cc-cflags
 | 
					 | 
				
			||||||
        done
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
      '' + extraBuildCommands;
 | 
					      '' + extraBuildCommands;
 | 
				
			||||||
    } // (removeAttrs args ["cc" "extraBuildCommands" "extraInstall"])
 | 
					    } // (removeAttrs args ["cc" "extraBuildCommands" "extraInstall"])
 | 
				
			||||||
    ).overrideAttrs (old: {
 | 
					    ).overrideAttrs (old: {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user