@@ -133,7 +133,7 @@ def test(self, host_target):
133
133
wasmkit_build_path = os .path .join (
134
134
build_root , '%s-%s' % ('wasmkit' , host_target ))
135
135
wasmkit_bin_path = wasmkit .WasmKit .cli_file_path (wasmkit_build_path )
136
- if not os .path .exists (wasmkit_bin_path ):
136
+ if not os .path .exists (wasmkit_bin_path ) or not self . should_test_executable () :
137
137
test_target = "check-swift-only_non_executable-wasi-wasm32-custom"
138
138
else :
139
139
test_target = "check-swift-wasi-wasm32-custom"
@@ -147,6 +147,9 @@ def test(self, host_target):
147
147
}
148
148
self .test_with_cmake (None , [test_target ], self ._build_variant , [], test_env = env )
149
149
150
+ def should_test_executable (self ):
151
+ return True
152
+
150
153
@property
151
154
def _build_variant (self ):
152
155
return self .args .build_variant
@@ -177,6 +180,10 @@ def get_dependencies(cls):
177
180
178
181
179
182
class WasmThreadsStdlib (WasmStdlib ):
183
+ def should_test_executable (self ):
184
+ # TODO(katei): Enable tests once WasmKit supports WASI threads
185
+ return False
186
+
180
187
def add_extra_cmake_options (self ):
181
188
self .cmake_options .define ('SWIFT_THREADING_PACKAGE:STRING' , 'pthreads' )
182
189
self .cmake_options .define ('SWIFT_STDLIB_EXTRA_C_COMPILE_FLAGS:STRING' ,
0 commit comments