[link] Avoid remote linking OOM
riscv64-coverage OOMs linking riscv64-coverage-shared/VkLayer_khronos_validation.so
on current RBE n2-standard-2 workers.
Locally, this link peaks around 7GB memory.
Bug: 42083070
Change-Id: I97f1806cdc8d88385439517b417a703d3aab4f5a
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/Vulkan-ValidationLayers/+/1025873
Commit-Queue: David Fang <fangism@google.com>
Fuchsia-Auto-Submit: David Fang <fangism@google.com>
Reviewed-by: Craig Stout <cstout@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 1a7f091..b4109a7 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -479,6 +479,11 @@
# TODO(b/310056428): remote link hangs, re-enable when fixed
configs += [ "//build/config:no_remote_link" ]
}
+ if (is_clang_coverage) {
+ # Runs OOM on standard remote build workers. See b/42083070#comment50.
+ configs += [ "//build/config:no_remote_link" ]
+ pool = "//build/config:highmem($default_toolchain)"
+ }
} else {
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]