mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
upgrade to gcc 12 in docker
This commit is contained in:
@@ -273,9 +273,9 @@ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q
|
|||||||
ccache \
|
ccache \
|
||||||
clang \
|
clang \
|
||||||
clang-tidy \
|
clang-tidy \
|
||||||
g++-multilib \
|
g++-12-multilib \
|
||||||
gcc-avr \
|
gcc-avr \
|
||||||
gcc-multilib \
|
gcc-12-multilib \
|
||||||
genromfs \
|
genromfs \
|
||||||
gettext \
|
gettext \
|
||||||
git \
|
git \
|
||||||
@@ -308,6 +308,14 @@ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q
|
|||||||
xxd \
|
xxd \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Set GCC-12 as Default compiler
|
||||||
|
RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20 && \
|
||||||
|
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 20 && \
|
||||||
|
update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 30 && \
|
||||||
|
update-alternatives --set cc /usr/bin/gcc && \
|
||||||
|
update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 30 && \
|
||||||
|
update-alternatives --set c++ /usr/bin/g++
|
||||||
|
|
||||||
# Configure out base setup for adding python packages
|
# Configure out base setup for adding python packages
|
||||||
ENV PIP_DISABLE_PIP_VERSION_CHECK=true
|
ENV PIP_DISABLE_PIP_VERSION_CHECK=true
|
||||||
# This disables the cache with value 0. We do not want caching as it
|
# This disables the cache with value 0. We do not want caching as it
|
||||||
|
|||||||
Reference in New Issue
Block a user