Skip to content

Commit 3b2fe1e

Browse files
committed
fix: bypassing LLD darwin incompatibility
1 parent aab2103 commit 3b2fe1e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ all: CoreCompiler.framework/CoreCompiler
5252
llvm-project:
5353
$(call log_info,downloading llvm ($(LLVM_TAG)))
5454
git clone --depth 1 --branch $(LLVM_TAG) --single-branch https://github.com/swiftlang/llvm-project.git
55+
$(call log_info,bypassing lld darwin incompatibility ($(LLVM_TAG)))
56+
perl -i -0pe 's|(// Swift LLVM fork downstream change start\n)(.*?)(// Swift LLVM fork downstream change end\n)|$$1/* NYXIAN: apple lies, lld works fine for MachO\n$$2*/\n$$3|s' \
57+
llvm-project/lld/MachO/InputFiles.cpp
5558

5659
# Configure
5760
llvm-project/build/build.ninja:

0 commit comments

Comments
 (0)