Skip to content

Commit 4b4e066

Browse files
committed
feat: add alternatives for cc and c++
1 parent 8b3dc50 commit 4b4e066

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.devcontainer/rust/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ RUN --mount=type=bind,source=.devcontainer/rust/apt-requirements.json,target=/tm
1919
--mount=type=cache,target=/var/lib/apt,sharing=locked \
2020
--mount=type=cache,target=/var/log,sharing=locked \
2121
apt-get update \
22-
&& jq -r 'to_entries | .[] | .key + "=" + .value' /tmp/apt-requirements.json | xargs apt-get install -y --no-install-recommends
22+
&& jq -r 'to_entries | .[] | .key + "=" + .value' /tmp/apt-requirements.json | xargs apt-get install -y --no-install-recommends \
23+
&& update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-15 10 \
24+
--slave /usr/bin/c++ c++ /usr/bin/g++-15
2325

2426
# Install rust
2527
ENV BINSTALL_DISABLE_TELEMETRY=true \

0 commit comments

Comments
 (0)