Skip to content

Commit feb2456

Browse files
committed
feat(container/linux): install wasi-sysroot
Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com>
1 parent 4998d1e commit feb2456

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.devcontainer/linux/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2828
clang-format \
2929
clang-tools \
3030
libclang-rt-dev \
31+
libclang-rt-dev-wasm32 \
32+
lld \
3133
llvm \
3234
net-tools \
3335
sudo \
@@ -42,10 +44,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4244
&& apt-get clean -y\
4345
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 50
4446

45-
# Install wasi-sdk
46-
RUN mkdir /opt/wasi-sdk && \
47-
curl -sSL https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$WASI_SDK_VERSION/wasi-sdk-$WASI_SDK_VERSION.0-$(uname -m | sed s/aarch64/arm64/)-linux.tar.gz | \
48-
tar zxvf - --strip-components=1 -C /opt/wasi-sdk
47+
# Install wasi-sysroot
48+
RUN mkdir /opt/wasi-sysroot && \
49+
curl -sSL https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$WASI_SDK_VERSION/wasi-sysroot-$WASI_SDK_VERSION.0.tar.gz | \
50+
tar zxvf - --strip-components=1 -C /opt/wasi-sysroot
4951

5052
FROM ocre-ci AS ocre-dev
5153

0 commit comments

Comments
 (0)