Fix sycl intel-oneapi-compiler
This commit is contained in:
		
							parent
							
								
									9d1944c658
								
							
						
					
					
						commit
						2d1f1ee5c7
					
				| @ -313,6 +313,9 @@ let | |||||||
|       "intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-common-${version}" |       "intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-common-${version}" | ||||||
|       "intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-runtime-${version}" |       "intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-runtime-${version}" | ||||||
|       "intel-oneapi-compiler-dpcpp-cpp-classic-fortran-shared-runtime-${version}" |       "intel-oneapi-compiler-dpcpp-cpp-classic-fortran-shared-runtime-${version}" | ||||||
|  |       "intel-oneapi-compiler-shared-${version}" | ||||||
|  |       "intel-oneapi-compiler-shared-common-${version}" | ||||||
|  |       "intel-oneapi-compiler-shared-runtime-${version}" | ||||||
|     ]; |     ]; | ||||||
|     # From https://aur.archlinux.org/packages/intel-oneapi-compiler: |     # From https://aur.archlinux.org/packages/intel-oneapi-compiler: | ||||||
|     # - intel-oneapi-compiler-cpp-eclipse-cfg-2023.0.0-25370_all.deb |     # - intel-oneapi-compiler-cpp-eclipse-cfg-2023.0.0-25370_all.deb | ||||||
| @ -329,9 +332,9 @@ let | |||||||
|     # - intel-oneapi-compiler-fortran-common-2023.0.0-2023.0.0-25370_all.deb |     # - intel-oneapi-compiler-fortran-common-2023.0.0-2023.0.0-25370_all.deb | ||||||
|     # - intel-oneapi-compiler-fortran-runtime-2023.0.0-2023.0.0-25370_amd64.deb |     # - intel-oneapi-compiler-fortran-runtime-2023.0.0-2023.0.0-25370_amd64.deb | ||||||
|     # - intel-oneapi-compiler-fortran-runtime-2023.0.0-25370_amd64.deb |     # - intel-oneapi-compiler-fortran-runtime-2023.0.0-25370_amd64.deb | ||||||
|     # - intel-oneapi-compiler-shared-2023.0.0-2023.0.0-25370_amd64.deb |     # + intel-oneapi-compiler-shared-2023.0.0-2023.0.0-25370_amd64.deb | ||||||
|     # - intel-oneapi-compiler-shared-common-2023.0.0-2023.0.0-25370_all.deb |     # + intel-oneapi-compiler-shared-common-2023.0.0-2023.0.0-25370_all.deb | ||||||
|     # - intel-oneapi-compiler-shared-runtime-2023.0.0-2023.0.0-25370_amd64.deb |     # + intel-oneapi-compiler-shared-runtime-2023.0.0-2023.0.0-25370_amd64.deb | ||||||
|     # - intel-oneapi-dpcpp-cpp-2023.0.0-2023.0.0-25370_amd64.deb |     # - intel-oneapi-dpcpp-cpp-2023.0.0-2023.0.0-25370_amd64.deb | ||||||
|     # - intel-oneapi-openmp-2023.0.0-2023.0.0-25370_amd64.deb |     # - intel-oneapi-openmp-2023.0.0-2023.0.0-25370_amd64.deb | ||||||
|     # - intel-oneapi-openmp-common-2023.0.0-2023.0.0-25370_all.deb |     # - intel-oneapi-openmp-common-2023.0.0-2023.0.0-25370_all.deb | ||||||
| @ -398,6 +401,15 @@ 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 | ||||||
| 
 | 
 | ||||||
|  |         echo "--gcc-toolchain=${mygcc.cc}" >> $out/nix-support/libcxx-cxxflags | ||||||
|  | 
 | ||||||
|  |         for dir in ${mygcc.cc}/include/c++/*; do | ||||||
|  |           echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags | ||||||
|  |         done | ||||||
|  |         for dir in ${mygcc.cc}/include/c++/*/${targetConfig}; do | ||||||
|  |           echo "-isystem $dir" >> $out/nix-support/libcxx-cxxflags | ||||||
|  |         done | ||||||
|  | 
 | ||||||
|         # 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 | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user