Skip to content

Commit 3617a19

Browse files
committed
Fixed LLVM-On-iOS
1 parent ad49925 commit 3617a19

3 files changed

Lines changed: 7 additions & 1003 deletions

File tree

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ swift:
2424
$(call log_info,bypassing lld darwin incompatibility)
2525
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' \
2626
llvm-project/lld/MachO/InputFiles.cpp
27-
$(call log_info,patching swift's darwin toolchain not creating compiler jobs)
28-
cp Patches/DarwinToolChains.cpp swift/lib/Driver/DarwinToolChains.cpp
2927

30-
SwiftToolchain-iphoneos: swift
28+
build/LLVMClangSwift_iphoneos/llvm-macosx-x86_64:
29+
mkdir -p build/LLVMClangSwift_iphoneos; cd build/LLVMClangSwift_iphoneos; ln -sfn llvm-macosx-arm64 llvm-macosx-x86_64
30+
31+
SwiftToolchain-iphoneos: swift build/LLVMClangSwift_iphoneos/llvm-macosx-x86_64
3132
$(call log_info,building iOS-native swift toolchain ($(SWIFT_BRANCH)))
3233
SWIFT_BRANCH="$(SWIFT_BRANCH)" SWIFT_SOURCE_DIR="$(SWIFT_SOURCE_DIR)" Scripts/build-swift-toolchain.sh build
3334

@@ -96,5 +97,4 @@ clean: clean-artifacts
9697
! -name .gitignore \
9798
! -name .github \
9899
! -name Scripts \
99-
! -name Patches \
100100
-exec rm -rf {} +

0 commit comments

Comments
 (0)