Skip to content

Commit 5e6a7ed

Browse files
Update Dockerfile to install cbindgen with --locked and provide explicit links to clang binaries (#4568)
* install cbindgen with --locked * add explicit links to clang/clang++ since CMake will not use the ENV --------- Co-authored-by: Sergei Boiko <[email protected]>
1 parent 1a13583 commit 5e6a7ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,16 @@ RUN apt-get update \
3434
ENV CC=/usr/bin/clang-14
3535
ENV CXX=/usr/bin/clang++-14
3636

37+
# CMake will not use the ENV if CMAKE_C_COMPILER is explicitly defined
38+
RUN ln -s /usr/bin/clang-14 /usr/bin/clang
39+
RUN ln -s /usr/bin/clang++-14 /usr/bin/clang++
40+
3741
# Install rust
3842
RUN wget "https://sh.rustup.rs" -O rustup.sh \
3943
&& sh rustup.sh -y
4044
ENV PATH="/root/.cargo/bin:${PATH}"
4145
RUN rustup default nightly-2024-06-13
42-
RUN cargo install --force cbindgen \
46+
RUN cargo install --force cbindgen --locked \
4347
&& rustup target add wasm32-unknown-emscripten
4448

4549
# ↑ Setup build environment

0 commit comments

Comments
 (0)