From 6748dd4ca0a633fea932d3638c45efc8f9f1c8de Mon Sep 17 00:00:00 2001 From: xbreak Date: Sun, 29 Dec 2019 23:17:10 +0000 Subject: [PATCH] clang_9: Correct ClangTargets-release.cmake Since commit 4271020 libclang-cpp is also moved to $lib. This adds the missing substitution in ClangTargets-release.cmake. --- pkgs/development/compilers/llvm/9/clang/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/llvm/9/clang/default.nix b/pkgs/development/compilers/llvm/9/clang/default.nix index bf9b1a32a834..925deaaa63dd 100644 --- a/pkgs/development/compilers/llvm/9/clang/default.nix +++ b/pkgs/development/compilers/llvm/9/clang/default.nix @@ -73,7 +73,8 @@ let moveToOutput "lib/libclang.*" "$lib" moveToOutput "lib/libclang-cpp.*" "$lib" substituteInPlace $out/lib/cmake/clang/ClangTargets-release.cmake \ - --replace "\''${_IMPORT_PREFIX}/lib/libclang." "$lib/lib/libclang." + --replace "\''${_IMPORT_PREFIX}/lib/libclang." "$lib/lib/libclang." \ + --replace "\''${_IMPORT_PREFIX}/lib/libclang-cpp." "$lib/lib/libclang-cpp." mkdir -p $python/bin $python/share/clang/ mv $out/bin/{git-clang-format,scan-view} $python/bin