Skip to content

Commit 732b0a1

Browse files
Run integration tests for JAVASCRIPTKIT_WITHOUT_WEAKREFS mode
1 parent 1f3c700 commit 732b0a1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: IntegrationTests/Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
CONFIGURATION ?= debug
2+
SWIFT_BUILD_FLAGS ?=
23

34
FORCE:
45
TestSuites/.build/$(CONFIGURATION)/%.wasm: FORCE
56
swift build --package-path TestSuites \
67
--product $(basename $(notdir $@)) \
78
--triple wasm32-unknown-wasi \
8-
--configuration $(CONFIGURATION)
9+
--configuration $(CONFIGURATION) \
10+
$(SWIFT_BUILD_FLAGS)
911

1012
dist/%.wasm: TestSuites/.build/$(CONFIGURATION)/%.wasm
1113
mkdir -p dist

Diff for: Makefile

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ build:
1414
test:
1515
cd IntegrationTests && \
1616
CONFIGURATION=debug make test && \
17-
CONFIGURATION=release make test
17+
CONFIGURATION=debug SWIFT_BUILD_FLAGS="-Xswiftc -DJAVASCRIPTKIT_WITHOUT_WEAKREFS" make test && \
18+
CONFIGURATION=release make test && \
19+
CONFIGURATION=release SWIFT_BUILD_FLAGS="-Xswiftc -DJAVASCRIPTKIT_WITHOUT_WEAKREFS" make test
1820

1921
.PHONY: benchmark_setup
2022
benchmark_setup:

0 commit comments

Comments
 (0)