[PATCH] D132875: Fix bazel pre-merge check

Theodore Popp via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 29 11:52:26 PDT 2022


tpopp updated this revision to Diff 456430.
tpopp added a comment.

linkopt can't be overriden with empty strings, so workaround differently.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D132875/new/

https://reviews.llvm.org/D132875

Files:
  utils/bazel/.bazelrc


Index: utils/bazel/.bazelrc
===================================================================
--- utils/bazel/.bazelrc
+++ utils/bazel/.bazelrc
@@ -168,6 +168,31 @@
 # Show test errors.
 build:ci --test_output=errors
 
+# Workaround bazel pre-merge failures after RBE was removed. Instead ci should
+# be used, but this provides a fix for bazel pre-merge checks until an owner
+# can fix this properly. Additionally provide rbe like functionality here.
+build:rbe --remote_cache=https://storage.googleapis.com/llvm-bazel-cache
+build:rbe --google_default_credentials=true
+
+# Following is expanded --config=ci without linkopt and host_linkopt settings
+# This undoes linker settings in generic_clang that are not supported in the
+# current environment of the bazel pre-merge checks. Remove once the docker
+# container is updated with clang-13 and lld-13 and replace with config=ci
+build:rbe --repo_env=CC=clang
+build:rbe --cxxopt=-std=c++17 --host_cxxopt=-std=c++17
+build:rbe --copt=-Wall --copt=-Werror --host_copt=-Wall --host_copt=-Werror
+build:rbe --cxxopt=-Wno-range-loop-analysis --host_cxxopt=-Wno-range-loop-analysis
+build:rbe --copt=-Wno-deprecated --host_copt=-Wno-deprecated
+build:rbe --linkopt=-fuse-ld=lld --host_linkopt=-fuse-ld=lld
+build:rbe --copt=-O1
+build:rbe --sandbox_base=/dev/shm
+build:rbe --build_tag_filters=-nobuildkite
+build:rbe --test_tag_filters=-nobuildkite
+build:rbe --keep_going
+build:rbe --test_output=errors
+
+
+
 ###############################################################################
 
 # The user.bazelrc file is not checked in but available for local mods.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132875.456430.patch
Type: text/x-patch
Size: 1620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220829/2268ed2f/attachment.bin>


More information about the llvm-commits mailing list