@@ -224,17 +224,17 @@ def build(self, host_target):
224
224
build_root , '%s-%s' % ('wasmllvmruntimelibs' , host_target ))
225
225
226
226
target_packages = []
227
- # NOTE: We have two types of target triples:
227
+ # NOTE: We have three types of target triples:
228
228
# 1. swift_host_triple: The triple used by the Swift compiler's '-target' option
229
229
# 2. clang_multiarch_triple: The triple used by Clang to find library
230
230
# and header paths from the sysroot
231
231
# 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'),
238
238
stdlib_build_path = os .path .join (
239
239
build_root , '%s-%s' % (build_basename , host_target ))
240
240
wasi_sysroot = wasisysroot .WASILibc .sysroot_install_path (
0 commit comments