diff options
author | Jan Solanti | 2024-07-03 17:51:58 +0300 |
---|---|---|
committer | Jan Solanti | 2024-07-03 17:51:58 +0300 |
commit | ba1c8bb0d5009871639a84540c1aa8436df42974 (patch) | |
tree | 39c2f97a9a24bcbc1435bc6ce175cf5112d45822 /pkgs/by-name/po | |
parent | 22867a51e9f99ad88b150fa3472013f3f1d7ecd5 (diff) |
pocl: use nixpkgs' default LLVM, enable SPIR-V support
Diffstat (limited to 'pkgs/by-name/po')
-rw-r--r-- | pkgs/by-name/po/pocl/package.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/by-name/po/pocl/package.nix b/pkgs/by-name/po/pocl/package.nix index 196c4981e715..9d9aaf24ef08 100644 --- a/pkgs/by-name/po/pocl/package.nix +++ b/pkgs/by-name/po/pocl/package.nix @@ -5,7 +5,10 @@ , cmake , pkg-config , hwloc -, llvmPackages_18 +, llvmPackages +, libxml2 # required for statically linked llvm +, spirv-llvm-translator +, spirv-tools , lttng-ust , ocl-icd , python3 @@ -14,7 +17,6 @@ }: let - llvmPackages = llvmPackages_18; clang = llvmPackages.clangUseLLVM; # Workaround to make sure libclang finds libgcc.a and libgcc_s.so when # invoked from within libpocl @@ -44,7 +46,7 @@ in stdenv.mkDerivation (finalAttrs: { cmakeFlags = [ "-DKERNELLIB_HOST_CPU_VARIANTS=distro" # avoid the runtime linker pulling in a different llvm e.g. from graphics drivers - "-DLLVM_STATIC=ON" + "-DSTATIC_LLVM=ON" "-DENABLE_POCL_BUILDING=OFF" "-DPOCL_ICD_ABSOLUTE_PATH=ON" "-DENABLE_ICD=ON" @@ -63,10 +65,13 @@ in stdenv.mkDerivation (finalAttrs: { buildInputs = [ hwloc + libxml2 llvmPackages.llvm llvmPackages.libclang lttng-ust ocl-icd + spirv-tools + spirv-llvm-translator ]; passthru.updateScript = nix-update-script { }; |