-
Notifications
You must be signed in to change notification settings - Fork 30
Add earliest and latest compilers #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,10 @@ RUN apt-get update -q && apt-get install -yq \ | |
zlib1g \ | ||
# to build Mbed TLS with MBEDTLS_ZILIB_SUPPORT (removed in 3.0) | ||
zlib1g-dev \ | ||
# to build Mbed TLS using latest gcc version available from Ubuntu | ||
gcc-12 \ | ||
# provides some useful scripts for adding and removing repositories | ||
software-properties-common \ | ||
&& case "$(uname -m)" in \ | ||
# x86_64 only packages | ||
x86_64) apt-get install -yq \ | ||
|
@@ -118,7 +122,18 @@ RUN apt-get update -q && apt-get install -yq \ | |
libstdc++6:armhf \ | ||
;; \ | ||
esac && \ | ||
rm -rf /var/lib/apt/lists/ | ||
rm -rf /var/lib/apt/lists/ | ||
|
||
# For installing clang-16, we add the llvm package source and add corresponding key | ||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 15CF4D18AF4F7421 \ | ||
# add an apt package source from https://apt.llvm.org/ | ||
|
||
&& add-apt-repository 'deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main' -y \ | ||
|
||
&& apt-get install -yq \ | ||
# to build Mbed TLS using latest clang version at the time of writing | ||
clang-16 && \ | ||
# create symbolic links for latest gcc and clang versions | ||
ln -s /usr/bin/clang-16 /usr/local/bin/clang-latest && \ | ||
ln -s /usr/bin/gcc-12 /usr/local/bin/gcc-latest | ||
|
||
# Install all the parts of gcc-multilib, which is necessary for 32-bit builds. | ||
# gcc-multilib conflicts with cross-compiler packages that we'll install later, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep the list in alphabetical order, it makes it easier to eyeball what's in there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix it.