Skip to content

Commit 9d2ec2f

Browse files
committed
refactor: renamed swift-source to swift
1 parent b4443a3 commit 9d2ec2f

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

‎.gitignore‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,18 @@ Clang**.xcframework/
2424
CoreCompiler.framework/CoreCompiler
2525
LLVM-iphoneos/
2626
CoreCompiler.framework/Headers/*
27+
swift*
28+
brotli
29+
CoreCompilerSupportLibs
30+
build
31+
cmake
32+
cmark
33+
curl
34+
lib*
35+
indexstore-db
36+
llbuild
37+
ninja
38+
sourcekit-lsp
39+
wasi-libc
40+
wasmkit
41+
zlib

‎Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LLVM_ARCH := AArch64
55
APPLE_ARCH := arm64
66
TARGET_TRIPLE := $(APPLE_ARCH)-apple-ios$(OS_VER)
77
SWIFT_BRANCH ?= swift-6.3.1-RELEASE
8-
SWIFT_SOURCE_DIR ?= swift-source
8+
SWIFT_SOURCE_DIR ?= swift
99
SWIFT_TOOLCHAIN_ZIP := SwiftToolchain.zip
1010
SWIFT_TOOLCHAIN_ROOT ?= SwiftToolchain-iphoneos
1111

@@ -18,14 +18,14 @@ endef
1818
all: CoreCompiler.framework/CoreCompiler
1919

2020
# Fetch & Build Swift and LLVM for iOS
21-
swift-source:
21+
swift:
2222
$(call log_info,fetching swift sources ($(SWIFT_BRANCH)))
2323
SWIFT_BRANCH="$(SWIFT_BRANCH)" SWIFT_SOURCE_DIR="$(SWIFT_SOURCE_DIR)" Scripts/build-swift-toolchain.sh fetch
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
2727

28-
SwiftToolchain-iphoneos: swift-source
28+
SwiftToolchain-iphoneos: swift
2929
$(call log_info,building iOS-native swift toolchain ($(SWIFT_BRANCH)))
3030
SWIFT_BRANCH="$(SWIFT_BRANCH)" SWIFT_SOURCE_DIR="$(SWIFT_SOURCE_DIR)" Scripts/build-swift-toolchain.sh build
3131

0 commit comments

Comments
 (0)