forked from swiftwasm/JavaScriptKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
31 lines (25 loc) · 764 Bytes
/
Makefile
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
MAKEFILE_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
.PHONY: bootstrap
bootstrap:
./scripts/install-toolchain.sh
npm ci
.PHONY: build
build:
swift build --triple wasm32-unknown-wasi
npm run build
.PHONY: test
test:
cd IntegrationTests && \
CONFIGURATION=debug make test && \
CONFIGURATION=debug SWIFT_BUILD_FLAGS="-Xswiftc -DJAVASCRIPTKIT_WITHOUT_WEAKREFS" make test && \
CONFIGURATION=release make test && \
CONFIGURATION=release SWIFT_BUILD_FLAGS="-Xswiftc -DJAVASCRIPTKIT_WITHOUT_WEAKREFS" make test
.PHONY: benchmark_setup
benchmark_setup:
cd IntegrationTests && make benchmark_setup
.PHONY: run_benchmark
run_benchmark:
cd IntegrationTests && make -s run_benchmark
.PHONY: perf-tester
perf-tester:
cd ci/perf-tester && npm ci