diff options
author | Googler <noreply@google.com> | 2019-04-01 10:28:11 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-04-01 10:29:20 -0700 |
commit | 0327931ca41de892dcdae4fd6a7123cea5b0b2f0 (patch) | |
tree | 56a061617c14e647a5f946e37a63cef6711bfa7b /vdso/BUILD | |
parent | 60efd53822fe8bb6b737a1e9a722d8317807ee9a (diff) |
Internal change.
PiperOrigin-RevId: 241350917
Change-Id: Ieacaa9ce2e41e22f1bae8900170879f549606782
Diffstat (limited to 'vdso/BUILD')
-rw-r--r-- | vdso/BUILD | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vdso/BUILD b/vdso/BUILD index 81cb7c24c..3df569233 100644 --- a/vdso/BUILD +++ b/vdso/BUILD @@ -3,6 +3,8 @@ # normal system VDSO (time, gettimeofday, clock_gettimeofday) but which uses # timekeeping parameters managed by the sandbox kernel. +load("@bazel_tools//tools/cpp:cc_flags_supplier.bzl", "cc_flags_supplier") + package(licenses = ["notice"]) config_setting( @@ -57,7 +59,7 @@ genrule( features = ["-pie"], toolchains = [ "@bazel_tools//tools/cpp:current_cc_toolchain", - "@bazel_tools//tools/cpp:cc_flags", + ":no_pie_cc_flags", ], tools = [ ":check_vdso", @@ -65,6 +67,11 @@ genrule( visibility = ["//:sandbox"], ) +cc_flags_supplier( + name = "no_pie_cc_flags", + features = ["-pie"], +) + py_binary( name = "check_vdso", srcs = ["check_vdso.py"], |