Loading pkgs/development/rocm-modules/rocm-comgr/default.nix +13 −4 Original line number Diff line number Diff line Loading @@ -45,9 +45,18 @@ stdenv.mkDerivation (finalAttrs: { ./fix-ccob-compat-output-filename.patch ]; postPatch = '' postPatch = # Fix relative path assumption for libllvm '' substituteInPlace cmake/opencl_header.cmake \ --replace-fail "\''${CLANG_CMAKE_DIR}/../../../" "${llvm.clang-unwrapped.lib}" '' # Bake LLVM root for cfg/includes or HIPRTC can't find C++ stdlib headers (e.g. <type_traits>). + '' substituteInPlace src/comgr-env.cpp \ --replace-fail \ 'return EnvLLVMPath;' \ 'return EnvLLVMPath ? EnvLLVMPath : "${llvm.rocm-toolchain}";' ''; nativeBuildInputs = [ Loading Loading
pkgs/development/rocm-modules/rocm-comgr/default.nix +13 −4 Original line number Diff line number Diff line Loading @@ -45,9 +45,18 @@ stdenv.mkDerivation (finalAttrs: { ./fix-ccob-compat-output-filename.patch ]; postPatch = '' postPatch = # Fix relative path assumption for libllvm '' substituteInPlace cmake/opencl_header.cmake \ --replace-fail "\''${CLANG_CMAKE_DIR}/../../../" "${llvm.clang-unwrapped.lib}" '' # Bake LLVM root for cfg/includes or HIPRTC can't find C++ stdlib headers (e.g. <type_traits>). + '' substituteInPlace src/comgr-env.cpp \ --replace-fail \ 'return EnvLLVMPath;' \ 'return EnvLLVMPath ? EnvLLVMPath : "${llvm.rocm-toolchain}";' ''; nativeBuildInputs = [ Loading