llvmPackages_17.libclc: init

+9 -4
+1 -1
pkgs/development/compilers/llvm/16/default.nix
··· 281 # Has to be in tools despite mostly being a library, 282 # because we use a native helper executable from a 283 # non-cross build in cross builds. 284 - libclc = callPackage ./libclc { 285 inherit buildLlvmTools; 286 }; 287 });
··· 281 # Has to be in tools despite mostly being a library, 282 # because we use a native helper executable from a 283 # non-cross build in cross builds. 284 + libclc = callPackage ../common/libclc.nix { 285 inherit buildLlvmTools; 286 }; 287 });
+2 -3
pkgs/development/compilers/llvm/16/libclc/default.nix pkgs/development/compilers/llvm/common/libclc.nix
··· 15 outputs = [ "out" "dev" ]; 16 17 patches = [ 18 - ./libclc-gnu-install-dirs.patch 19 ]; 20 21 # cmake expects all required binaries to be in the same place, so it will not be able to find clang without the patch ··· 30 --replace 'find_program( LLVM_OPT opt PATHS ''${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )' \ 31 'find_program( LLVM_OPT opt PATHS "${buildLlvmTools.llvm}/bin" NO_DEFAULT_PATH )' \ 32 --replace 'find_program( LLVM_SPIRV llvm-spirv PATHS ''${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )' \ 33 - 'find_program( LLVM_SPIRV llvm-spirv PATHS "${buildPackages.spirv-llvm-translator}/bin" NO_DEFAULT_PATH )' 34 '' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' 35 substituteInPlace CMakeLists.txt \ 36 --replace 'COMMAND prepare_builtins' 'COMMAND ${buildLlvmTools.libclc.dev}/bin/prepare_builtins' ··· 45 ''; 46 47 meta = with lib; { 48 - broken = stdenv.isDarwin; 49 homepage = "http://libclc.llvm.org/"; 50 description = "Implementation of the library requirements of the OpenCL C programming language"; 51 license = licenses.mit;
··· 15 outputs = [ "out" "dev" ]; 16 17 patches = [ 18 + ./libclc/libclc-gnu-install-dirs.patch 19 ]; 20 21 # cmake expects all required binaries to be in the same place, so it will not be able to find clang without the patch ··· 30 --replace 'find_program( LLVM_OPT opt PATHS ''${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )' \ 31 'find_program( LLVM_OPT opt PATHS "${buildLlvmTools.llvm}/bin" NO_DEFAULT_PATH )' \ 32 --replace 'find_program( LLVM_SPIRV llvm-spirv PATHS ''${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )' \ 33 + 'find_program( LLVM_SPIRV llvm-spirv PATHS "${buildPackages.spirv-llvm-translator.override { inherit (buildLlvmTools) llvm; }}/bin" NO_DEFAULT_PATH )' 34 '' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' 35 substituteInPlace CMakeLists.txt \ 36 --replace 'COMMAND prepare_builtins' 'COMMAND ${buildLlvmTools.libclc.dev}/bin/prepare_builtins' ··· 45 ''; 46 47 meta = with lib; { 48 homepage = "http://libclc.llvm.org/"; 49 description = "Implementation of the library requirements of the OpenCL C programming language"; 50 license = licenses.mit;
pkgs/development/compilers/llvm/16/libclc/libclc-gnu-install-dirs.patch pkgs/development/compilers/llvm/common/libclc/libclc-gnu-install-dirs.patch
+6
pkgs/development/compilers/llvm/17/default.nix
··· 269 nixSupport.cc-cflags = [ "-fno-exceptions" ]; 270 }); 271 272 }); 273 274 libraries = lib.makeExtensible (libraries: let
··· 269 nixSupport.cc-cflags = [ "-fno-exceptions" ]; 270 }); 271 272 + # Has to be in tools despite mostly being a library, 273 + # because we use a native helper executable from a 274 + # non-cross build in cross builds. 275 + libclc = callPackage ../common/libclc.nix { 276 + inherit buildLlvmTools; 277 + }; 278 }); 279 280 libraries = lib.makeExtensible (libraries: let