mirror of https://github.com/rust-lang/rust.git
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:
parent
41a9cd4810
commit
a47834ef80
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue