Skip to content

Commit

Permalink
Add //tools/cpp:cc_flags to the toolchains attribute.
Browse files Browse the repository at this point in the history
This is so that CC_FLAGS will be resolved properly.

After the --incompatible_disable_genrule_cc_toolchain_dependency flag is
flipped, Bazel will no longer be providing CC_FLAGS to genrule by default.

PiperOrigin-RevId: 240595715
Change-Id: I067334051e89f7ec006a6b6b3d2f4188911ac2db
  • Loading branch information
Googler authored and shentubot committed Mar 27, 2019
1 parent 26583e4 commit 66181f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vdso/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ genrule(
"--check-data " +
"--vdso $(location vdso.so) ",
features = ["-pie"],
toolchains = ["@bazel_tools//tools/cpp:current_cc_toolchain"],
toolchains = [
"@bazel_tools//tools/cpp:current_cc_toolchain",
"@bazel_tools//tools/cpp:cc_flags",
],
tools = [
":check_vdso",
],
Expand Down

0 comments on commit 66181f3

Please sign in to comment.