From 94887be0c15e72e433ce5943af8254924bd25fd8 Mon Sep 17 00:00:00 2001 From: Jonas Claes Date: Fri, 30 Sep 2022 08:58:47 +0200 Subject: [PATCH 1/2] Updated README with instructions to clean build cache. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index f6f4c288a07..c51b77b1779 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,14 @@ bazel build -c opt //src/workerd/server:workerd The compiled binary will be located at `bazel-bin/src/workerd/server/workerd`. +In case you get any build errors related to llvm14/clang14, you should first try to clean the Bazel build cache using the following command: + +``` +bazel clean --expunge +``` + +The cache will now be cleaned and you can try building again. + ### Configuring `workerd` `workerd` is configured using a config file written in Cap'n Proto text format. From 1d223827a5fc3da887d9c3ac444fb435a7570418 Mon Sep 17 00:00:00 2001 From: Jonas Claes Date: Mon, 3 Oct 2022 11:48:24 +0200 Subject: [PATCH 2/2] Update README.md Updated description of build steps on error Co-authored-by: James M Snell --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c51b77b1779..ad4daa47cc6 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ bazel build -c opt //src/workerd/server:workerd The compiled binary will be located at `bazel-bin/src/workerd/server/workerd`. -In case you get any build errors related to llvm14/clang14, you should first try to clean the Bazel build cache using the following command: +If you run a Bazel build before you've installed some dependencies (like clang or libc++), and then you install the dependencies, you must clean Bazel's cache, otherwise you might get strange errors: ``` bazel clean --expunge