Skip to content

Commit 99f23c2

Browse files
[Preset] Add linux crosscompile wasm preset (#39183)
This preset will be used by community CI for WebAssembly to ensure [single-threaded-runtime mode won't be broken again](#39092 (comment)) and enable us testing IRGen for WebAssembly in upstream. Note that the current preset doesn't build stdlib for Wasm for now because some essential patches haven't been ported yet and build-script doesn't support it. But that should be enabled after that's supported. This change is a part of SR-15168.
1 parent fc6f9e0 commit 99f23c2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

utils/build-presets.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,6 +1179,15 @@ mixin-preset=buildbot_incremental_linux,long_test
11791179
indexstore-db=0
11801180
sourcekit-lsp=0
11811181

1182+
# TODO: This does not build stdlib for wasm32 for now.
1183+
# Enable stdlib cross-compile after build-script will support it.
1184+
[preset: buildbot_incremental_linux_crosscompile_wasm]
1185+
mixin-preset=buildbot_incremental_linux_base
1186+
llvm-targets-to-build=X86;ARM;AArch64;WebAssembly
1187+
# Ensure single-thread-mode is not broken because it's used
1188+
# by stdlib for wasm32 in SwiftWasm fork.
1189+
swift-stdlib-single-threaded-runtime=1
1190+
11821191
#===------------------------------------------------------------------------===#
11831192
# OS X Package Builders
11841193
#===------------------------------------------------------------------------===#

0 commit comments

Comments
 (0)