[PATCH] D132396: [bazel][docs] Mention how to provide path to compiler

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 22 10:03:28 PDT 2022


aeubanks created this revision.
Herald added a project: All.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

And some other cleanups/clarifications.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132396

Files:
  utils/bazel/README.md


Index: utils/bazel/README.md
===================================================================
--- utils/bazel/README.md
+++ utils/bazel/README.md
@@ -31,7 +31,8 @@
    https://docs.bazel.build/versions/main/install.html.
 3. `cd utils/bazel`
 4. `bazel build --config=generic_clang @llvm-project//...` (if building on Unix
-   with Clang). `--config=generic_gcc` and `--config=msvc` are also available.
+   with Clang/LLD). `--config=generic_gcc` and `--config=msvc` are also
+   available.
 
 
 # Configuration
@@ -54,7 +55,7 @@
 
 You can instruct Bazel to use a ramdisk for its sandboxing operations via
 [--sandbox_base](https://docs.bazel.build/versions/main/command-line-reference.html#flag--sandbox_base),
-which can help avoid IO bottlenecks for the symlink stragegy used for
+which can help avoid IO bottlenecks for the symlink strategy used for
 sandboxing. This is especially important with many inputs and many cores (see
 https://github.com/bazelbuild/bazel/issues/11868):
 
@@ -65,6 +66,12 @@
 Bear in mind that this requires that your ramdisk is of sufficient size to hold
 any temporary files. Anecdotally, 1GB should be sufficient.
 
+To specify a specific local compiler to use, add the following bazel flag:
+
+```.bazelrc
+build --repo_env=CC=$PATH_TO_CC
+```
+
 # Coverage
 
 The LLVM, MLIR, and Clang subprojects have configurations for Linux (Clang and


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132396.454553.patch
Type: text/x-patch
Size: 1379 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220822/473b1e8b/attachment.bin>


More information about the llvm-commits mailing list