forked from swiftwasm/JavaScriptKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 730 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (25 loc) · 730 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
25
26
27
28
29
30
31
32
33
CONFIGURATION ?= debug
FORCE:
TestSuites/.build/$(CONFIGURATION)/%.wasm: FORCE
swift build --package-path TestSuites \
--product $(basename $(notdir $@)) \
--triple wasm32-unknown-wasi \
--configuration $(CONFIGURATION)
dist/%.wasm: TestSuites/.build/$(CONFIGURATION)/%.wasm
mkdir -p dist
cp $< $@
node_modules: package-lock.json
npm ci
.PHONY: build_rt
build_rt: node_modules
cd .. && npm run build
.PHONY: benchmark_setup
benchmark_setup: build_rt dist/BenchmarkTests.wasm
.PHONY: run_benchmark
run_benchmark:
node bin/benchmark-tests.js
.PHONY: benchmark
benchmark: benchmark_setup run_benchmark
.PHONY: test
test: build_rt dist/PrimaryTests.wasm
node bin/primary-tests.js