소스 검색

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 년 전
부모
커밋
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