aboutsummaryrefslogtreecommitdiff
path: root/bazel
diff options
context:
space:
mode:
authorFabian Meumertzheim <meumertzheim@code-intelligence.com>2021-05-16 21:49:13 +0200
committerFabian Meumertzheim <fabian@meumertzhe.im>2021-05-16 22:02:16 +0200
commitf4148eb2623d5210a3ff61391924da1c338682d3 (patch)
tree2dd37ebb5b8cf64f204b829e059d2b3225369a52 /bazel
parentf16d957d528fe0a0795114e39f0bda575e4caaff (diff)
downloadjazzer-api-f4148eb2623d5210a3ff61391924da1c338682d3.tar.gz
Prevent redundant Jazzer builds
The driver built through the C++17 transition does not need to have the native `cc_binary` target in its runfiles, which cuts the build time almost in half and simplifies the runfiles tree.
Diffstat (limited to 'bazel')
-rw-r--r--bazel/cc.bzl8
1 files changed, 1 insertions, 7 deletions
diff --git a/bazel/cc.bzl b/bazel/cc.bzl
index 6e2f634b..202dbfcb 100644
--- a/bazel/cc.bzl
+++ b/bazel/cc.bzl
@@ -34,13 +34,7 @@ def _cc_17_binary_impl(ctx):
target_file = ctx.executable.binary,
is_executable = True,
)
- binary_runfiles = ctx.attr.binary[0][DefaultInfo].default_runfiles
- return [
- DefaultInfo(
- executable = output_file,
- runfiles = binary_runfiles,
- ),
- ]
+ return [DefaultInfo(executable = output_file)]
_cc_17_binary = rule(
implementation = _cc_17_binary_impl,