cederom commented on code in PR #17849:
URL: https://github.com/apache/nuttx/pull/17849#discussion_r2704618994


##########
tools/ci/docker/linux/Dockerfile:
##########
@@ -380,30 +371,64 @@ RUN apt-get update -qq && 
DEBIAN_FRONTEND="noninteractive" TZ=Etc/UTC apt-get in
   zip \
   && 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++
+# Add LLVM repository for clang-21 (Targeting Noble)
+# Note: Clang-21 is a snapshot, ensured repo is noble
+RUN wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | tee 
/etc/apt/trusted.gpg.d/apt.llvm.org.asc
+RUN echo "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-21 main" | tee 
/etc/apt/sources.list.d/llvm.list
+RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y 
-qq \
+  clang-21 \
+  clang++-21 \
+  clang-tidy-21 \
+  && rm -rf /var/lib/apt/lists/*
+
+# Set Clang-21 as Default clang compiler

Review Comment:
   no need to `--set cc` and `--set c++` as before ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to