File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
utils/swift_build_support/swift_build_support Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,8 @@ class StdlibDeploymentTarget(object):
243
243
244
244
Haiku = Platform ("haiku" , archs = ["x86_64" ])
245
245
246
+ WASI = Platform ("wasi" , archs = ["wasm32" ])
247
+
246
248
# The list of known platforms.
247
249
known_platforms = [
248
250
OSX ,
@@ -256,7 +258,8 @@ class StdlibDeploymentTarget(object):
256
258
Cygwin ,
257
259
Android ,
258
260
Windows ,
259
- Haiku ]
261
+ Haiku ,
262
+ WASI ]
260
263
261
264
# Cache of targets by name.
262
265
_targets_by_name = dict ((target .name , target )
@@ -338,6 +341,10 @@ def host_target():
338
341
if machine == 'x86_64' :
339
342
return StdlibDeploymentTarget .Haiku .x86_64
340
343
344
+ elif system == 'WASI' :
345
+ if machine == 'wasm32' :
346
+ return StdlibDeploymentTarget .WASI .wasm32
347
+
341
348
raise NotImplementedError ('System "%s" with architecture "%s" is not '
342
349
'supported' % (system , machine ))
343
350
You can’t perform that action at this time.
0 commit comments