From c8faa47f83de37bb1972aede1cdf3219bdce3367 Mon Sep 17 00:00:00 2001 From: Jon Ross-Perkins Date: Fri, 16 Sep 2022 08:29:37 -0700 Subject: [PATCH] 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. --- .devcontainer/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 8380186918bd..2ab43ae04bf1 100644 --- a/.devcontainer/Dockerfile +++ b/.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