Skip to content

Commit 95bbfd3

Browse files
committed
build-script: allow --test-wasm-stdlib without --build-wasm-stdlib
This allows testing Wasm stdlib without rebuilding WASI sysroot and stdlib, while some changes are still detected by ninja as dependencies and are rebuilt, which is great for local incremental builds.
1 parent a47325f commit 95bbfd3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

utils/build_swift/build_swift/driver_arguments.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,8 @@ def create_argument_parser():
829829
option(['--build-wasm-stdlib'], toggle_true('build_wasmstdlib'),
830830
help='build the stdlib for WebAssembly target into a'
831831
'separate build directory ')
832+
option('--test-wasm-stdlib', toggle_true('test_wasmstdlib'),
833+
help='test stdlib for WebAssembly')
832834
option(['--wasmkit'], toggle_true('build_wasmkit'),
833835
help='build WasmKit')
834836
option(['--install-wasmkit'], toggle_true('install_wasmkit'),

utils/swift_build_support/swift_build_support/build_script_invocation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def compute_product_pipelines(self):
683683
builder.add_product(products.WasmKit,
684684
is_enabled=self.args.build_wasmkit)
685685
builder.add_product(products.WasmStdlib,
686-
is_enabled=self.args.build_wasmstdlib)
686+
is_enabled=self.args.build_wasmstdlib or self.args.test_wasmstdlib)
687687
builder.add_product(products.WasmThreadsStdlib,
688688
is_enabled=self.args.build_wasmstdlib)
689689
builder.add_product(products.WasmSwiftSDK,

0 commit comments

Comments
 (0)