mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user