Просмотр исходного кода

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.
Jon Ross-Perkins 3 лет назад
Родитель
Сommit
c8faa47f83
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      .devcontainer/Dockerfile

+ 3 - 1
.devcontainer/Dockerfile

@@ -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