Bazel support: Replace `PREBUILT_LLVM_PATH` with `LLVM_INSTALL_PATH`.
Pre-built LLVM+Clang libraries+headers can be found either at:
1. LLVM's source path (`PREBUILT_LLVM_PATH`) *and* build path
`"${PREBUILT_LLVM_PATH}/${CMAKE_BUILD_DIR}"` taken together, or
2. LLVM's install path (`LLVM_INSTALL_PATH`)
This CL switches from the former to the latter approach because:
1. Bazel's `glob` doesn't like dealing with `..` or absolute paths
(and Chromium places LLVM's build directory outside of LLVM's
source directory).
2. It slightly simplifies Crubit's BUILD files (see the changes
in this CL).
PiperOrigin-RevId: 451898842
diff --git a/README.md b/README.md
index 671119b..dc605f0 100644
--- a/README.md
+++ b/README.md
@@ -20,9 +20,10 @@
```
$ git clone https://github.com/llvm/llvm-project
$ cd llvm-project
-$ CC=clang CXX=clang++ cmake -S llvm -B build -DLLVM_ENABLE_PROJECTS='clang' -DCMAKE_BUILD_TYPE=Release
+$ CC=clang CXX=clang++ cmake -S llvm -B build -DLLVM_ENABLE_PROJECTS='clang' -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=install
$ cmake --build build -j
$ # wait...
+$ cmake --install build
$ cd ../crubit
-$ PREBUILT_LLVM_PATH=../llvm-project bazel build //rs_bindings_from_cc:rs_bindings_from_cc_impl
-```
\ No newline at end of file
+$ LLVM_INSTALL_PATH=../llvm-project/install bazel build //rs_bindings_from_cc:rs_bindings_from_cc_impl
+```