From fa940d4f8ad63500961deb6045076833a65cf5ee Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Wed, 11 Aug 2021 10:40:07 +0200 Subject: Do not build .pic.o for //driver --- driver/BUILD.bazel | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'driver') diff --git a/driver/BUILD.bazel b/driver/BUILD.bazel index c636884b..d38acffc 100644 --- a/driver/BUILD.bazel +++ b/driver/BUILD.bazel @@ -1,6 +1,11 @@ load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test") load("//bazel:cc.bzl", "cc_17_library") +# None of the targets in this package should be built into shared objects. By +# disabling the supports_pic feature, we reduce build time otherwise spent on +# .pic.o files. +package(features = ["-supports_pic"]) + cc_library( name = "sanitizer_hooks_with_pc", srcs = ["sanitizer_hooks_with_pc.cpp"], -- cgit v1.2.3