forked from migueldeicaza/SwiftTerm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 878 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# This is the release toolchain for Swift 5.7.3, but you need the Swift download, the Xcode version lacks the fuzzer
# To get this number, run:
# plutil -extract CFBundleIdentifier raw /Library/Developer/Toolchains/swift-5.7.3-RELEASE.xctoolchain/Info.plist
TOOLCHAINS=org.swift.573202201171a
all:
echo nothing defined by default
regen-unicode-width:
python3 scripts/regen_unicode_width_data.py
build-fuzzer:
xcrun --toolchain $(TOOLCHAINS) swift build -Xswiftc "-sanitize=fuzzer" -Xswiftc "-parse-as-library"
run-fuzzer:
./.build/debug/SwiftTermFuzz ../SwiftTermFuzzerCorpus -rss_limit_mb=40480 -jobs=12
clone-esctest:
@if [ -d esctest ]; then \
echo "esctest directory already exists, updating..."; \
cd esctest && git fetch && git checkout python3 && git pull; \
else \
git clone --branch python3 https://github.com/migueldeicaza/esctest.git esctest; \
fi