Use system clang for wasm32_unknown_unknown on x86-gnu-integration

Fuchsia clang does not include the wasm32 target, so instead install
and use system clang for this purpose.
This commit is contained in:
Nikita Popov 2024-02-08 18:30:17 +01:00
parent 41a9cd4810
commit a47834ef80
1 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@ FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
clang-15 \
g++ \
make \
ninja-build \
@ -46,6 +47,9 @@ ENV TARGETS=x86_64-fuchsia
ENV TARGETS=$TARGETS,x86_64-unknown-linux-gnu
ENV TARGETS=$TARGETS,wasm32-unknown-unknown
# Fuchsia clang does not have wasm target enabled, use system clang.
ENV CC_wasm32_unknown_unknown=clang-15
COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh