Skip to content

Commit caf1787

Browse files
[Wasm] Build sdk-overlay explicitly to avoid absence of header/modulemap
1 parent 1b9aae3 commit caf1787

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

utils/webassembly/build-toolchain.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ build_target_toolchain() {
144144
-G Ninja \
145145
-S "$SOURCE_PATH/swift"
146146

147-
ninja install -C "$SWIFT_STDLIB_BUILD_DIR"
147+
# FIXME(katei): 'sdk-overlay' is explicitly used to build libcxxshim.modulemap
148+
# which is used only in tests, so 'ninja install' doesn't build it
149+
# the header and modulemap custom targets should be added as dependency of install
150+
ninja sdk-overlay install -C "$SWIFT_STDLIB_BUILD_DIR"
148151

149152
# Link compiler-rt libs to stdlib build dir
150153
mkdir -p "$SWIFT_STDLIB_BUILD_DIR/lib/clang/10.0.0/"

0 commit comments

Comments
 (0)