Skip to content

Commit 2767e2b

Browse files
[wasm] remove unnecessary wasi-libc modulemap path adjustment
1 parent b99084a commit 2767e2b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

utils/webassembly/build-toolchain.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,6 @@ build_target_toolchain() {
174174
embed_wasi_sysroot() {
175175
# Merge wasi-sdk and the toolchain
176176
cp -r "$WASI_SYSROOT_PATH" "$DIST_TOOLCHAIN_SDK/usr/share"
177-
178-
# Replace absolute sysroot path with relative path
179-
sed -i.bak -e "s@\".*/include@\"../../../../share/wasi-sysroot/include@g" "$DIST_TOOLCHAIN_SDK/usr/lib/swift/wasi/wasm32/wasi.modulemap"
180-
rm "$DIST_TOOLCHAIN_SDK/usr/lib/swift/wasi/wasm32/wasi.modulemap.bak"
181-
sed -i.bak -e "s@\".*/include@\"../../../../share/wasi-sysroot/include@g" "$DIST_TOOLCHAIN_SDK/usr/lib/swift_static/wasi/wasm32/wasi.modulemap"
182-
rm "$DIST_TOOLCHAIN_SDK/usr/lib/swift_static/wasi/wasm32/wasi.modulemap.bak"
183177
}
184178

185179
swift_version() {

0 commit comments

Comments
 (0)