Add llvm to PATH instead of CC (#2189)

This helps VS Code find clangd (instead of needing to pass in clangd-15 somehow), and seems like it'll work in general.
This commit is contained in:
Jon Ross-Perkins
2022-09-16 08:29:37 -07:00
committed by GitHub
parent b80e294b6c
commit c8faa47f83
+3 -1
View File
@@ -31,7 +31,9 @@ RUN wget https://apt.llvm.org/llvm.sh
RUN chmod +x llvm.sh
RUN ./llvm.sh 15 all
RUN rm llvm.sh
ENV CC="/usr/bin/clang-15"
# Add the lib dir to the PATH. This helps Bazel find clang and VS Code find
# clangd, without version suffixes.
ENV PATH="/usr/lib/llvm-15/bin:${PATH}"
# Update pip and install black and pre-commit.
RUN pip3 install -U pip