Merge pull request #139043 from obsidiansystems/dn-fix-lld_13
llvmPackages_13.lld: add postPatch to fix Darwin build
This commit is contained in:
commit
06f968ff54
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,14 @@ stdenv.mkDerivation rec {
|
|||
./gnu-install-dirs.patch
|
||||
];
|
||||
|
||||
# On Darwin the llvm-config is perhaps not working fine as the
|
||||
# LLVM_MAIN_SRC_DIR is not getting set correctly, and the build fails as the
|
||||
# include path is not correct.
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace MachO/CMakeLists.txt --replace \
|
||||
'(''${LLVM_MAIN_SRC_DIR}/' '(../'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ libllvm libxml2 ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue