Skip to content

Commit d69a07f

Browse files
authored
Disable wasm32-wasip1-threads in wasmswiftsdk.py
1 parent f6eb58f commit d69a07f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

utils/swift_build_support/swift_build_support/products/wasmswiftsdk.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,17 @@ def build(self, host_target):
224224
build_root, '%s-%s' % ('wasmllvmruntimelibs', host_target))
225225

226226
target_packages = []
227-
# NOTE: We have two types of target triples:
227+
# NOTE: We have three types of target triples:
228228
# 1. swift_host_triple: The triple used by the Swift compiler's '-target' option
229229
# 2. clang_multiarch_triple: The triple used by Clang to find library
230230
# and header paths from the sysroot
231231
# https://github.com/llvm/llvm-project/blob/73ef397fcba35b7b4239c00bf3e0b4e689ca0add/clang/lib/Driver/ToolChains/WebAssembly.cpp#L29-L36
232-
for swift_host_triple, clang_multiarch_triple, build_basename, build_sdk, has_pthread in [
233-
('wasm32-unknown-wasi', 'wasm32-wasi', 'wasmstdlib', True, False),
234-
# TODO: Include p1-threads in the Swift SDK once sdk-generator supports multi-target SDK
235-
('wasm32-unknown-wasip1-threads', 'wasm32-wasip1-threads',
236-
'wasmthreadsstdlib', False, True),
237-
]:
232+
# 3. short_triple: The triple used by build-script to name the build directory
233+
for swift_host_triple, clang_multiarch_triple, short_triple, build_basename in [
234+
('wasm32-unknown-wasi', 'wasm32-wasi', 'wasi-wasm32', 'wasmstdlib'),
235+
# TODO: Enable threads stdlib once sdk-generator supports multi-target SDK
236+
# ('wasm32-unknown-wasip1-threads', 'wasm32-wasip1-threads',
237+
# 'wasip1-threads-wasm32', 'wasmthreadsstdlib'),
238238
stdlib_build_path = os.path.join(
239239
build_root, '%s-%s' % (build_basename, host_target))
240240
wasi_sysroot = wasisysroot.WASILibc.sysroot_install_path(

0 commit comments

Comments
 (0)