mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
clang: Do not try to build clang-tblgen in LLVM's build path.
This commit is contained in:
parent
52abed95ca
commit
2c9f0e059a
9
pkgs/development/compilers/llvm/clang-tablegen-dir.patch
Normal file
9
pkgs/development/compilers/llvm/clang-tablegen-dir.patch
Normal file
@ -0,0 +1,9 @@
|
||||
--- a/utils/TableGen/CMakeLists.txt (revision 190146)
|
||||
+++ b/utils/TableGen/CMakeLists.txt (working copy)
|
||||
@@ -1,4 +1,5 @@
|
||||
set(LLVM_LINK_COMPONENTS Support)
|
||||
+set(LLVM_TOOLS_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
add_tablegen(clang-tblgen CLANG
|
||||
ClangASTNodesEmitter.cpp
|
||||
|
@ -10,7 +10,8 @@ stdenv.mkDerivation {
|
||||
|
||||
buildInputs = [ perl llvm groff cmake libxml2 python ];
|
||||
|
||||
patches = stdenv.lib.optional (stdenv.gcc.libc != null) ./clang-purity.patch;
|
||||
patches = [ ./clang-tablegen-dir.patch ] ++
|
||||
stdenv.lib.optional (stdenv.gcc.libc != null) ./clang-purity.patch;
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCLANG_PATH_TO_LLVM_BUILD=${llvm}"
|
||||
|
Loading…
Reference in New Issue
Block a user