-
Notifications
You must be signed in to change notification settings - Fork 447
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 1.17 KB
/
Copy pathMakefile
File metadata and controls
33 lines (25 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# The fuzzer needs a Swift 6.2 or later toolchain from swift.org.
# The downloadable release toolchains provide the `swift` alias.
TOOLCHAINS ?= swift
all:
echo nothing defined by default
regen-unicode-width:
python3 scripts/regen_unicode_width_data.py
check-unicode-width:
python3 scripts/regen_unicode_width_data.py --check
benchmark-unicode-width:
swiftc -O Sources/SwiftTerm/Utilities.swift Sources/SwiftTerm/UnicodeWidthData.swift Benchmarks/UnicodeColumnWidthBenchmark.swift -o /tmp/swiftterm-unicode-width-benchmark
/tmp/swiftterm-unicode-width-benchmark
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
run-bench:
(cd Tools/SwiftTermBenchmarks; swift package benchmark --target SwiftTermBenchmarks --benchmark-build-configuration release)