File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
swift_build_support/swift_build_support Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -292,6 +292,9 @@ def _apply_default_arguments(args):
292
292
args .test_xros_host = False
293
293
args .test_android_host = False
294
294
295
+ if args .build_wasmstdlib :
296
+ args .test_wasmstdlib = True
297
+
295
298
296
299
def create_argument_parser ():
297
300
"""Return a configured argument parser."""
@@ -829,6 +832,8 @@ def create_argument_parser():
829
832
option (['--build-wasm-stdlib' ], toggle_true ('build_wasmstdlib' ),
830
833
help = 'build the stdlib for WebAssembly target into a'
831
834
'separate build directory ' )
835
+ option ('--test-wasm-stdlib' , toggle_true ('test_wasmstdlib' ),
836
+ help = 'test stdlib for WebAssembly' )
832
837
option (['--wasmkit' ], toggle_true ('build_wasmkit' ),
833
838
help = 'build WasmKit' )
834
839
option (['--install-wasmkit' ], toggle_true ('install_wasmkit' ),
Original file line number Diff line number Diff line change 328
328
'test_swiftformat' : False ,
329
329
'test_swiftdocc' : False ,
330
330
'test_toolchainbenchmarks' : False ,
331
- 'test_wasmstdlib' : True ,
331
+ 'test_wasmstdlib' : False ,
332
332
'tvos' : False ,
333
333
'tvos_all' : False ,
334
334
'validation_test' : None ,
@@ -591,6 +591,7 @@ class BuildScriptImplOption(_BaseOption):
591
591
SetTrueOption ('--swiftdocc' , dest = 'build_swiftdocc' ),
592
592
SetTrueOption ('--build-minimal-stdlib' , dest = 'build_minimalstdlib' ),
593
593
SetTrueOption ('--build-wasm-stdlib' , dest = 'build_wasmstdlib' ),
594
+ SetTrueOption ('--test-wasm-stdlib' , dest = 'test_wasmstdlib' ),
594
595
SetTrueOption ('--wasmkit' , dest = 'build_wasmkit' ),
595
596
SetTrueOption ('--build-stdlib-docs' ),
596
597
SetTrueOption ('--preview-stdlib-docs' ),
Original file line number Diff line number Diff line change @@ -683,7 +683,9 @@ def compute_product_pipelines(self):
683
683
builder .add_product (products .WasmKit ,
684
684
is_enabled = self .args .build_wasmkit )
685
685
builder .add_product (products .WasmStdlib ,
686
- is_enabled = self .args .build_wasmstdlib )
686
+ # Revert `or self.args.test_wasmstdlib` once we adopt `wasi-sdk-26`
687
+ # or higher version that includes https://github.com/WebAssembly/wasi-libc/commit/eadb436d5c09f7983c3a687086e5af6b6e9f5510.patch
688
+ is_enabled = self .args .build_wasmstdlib or self .args .test_wasmstdlib )
687
689
builder .add_product (products .WasmThreadsStdlib ,
688
690
is_enabled = self .args .build_wasmstdlib )
689
691
builder .add_product (products .WasmSwiftSDK ,
You can’t perform that action at this time.
0 commit comments