Skip to content

Commit

Permalink
[BUILD] Clean up direct labels in bazel rules
Browse files Browse the repository at this point in the history
Instead of assuming which linker options are a label we use $(location label).
Figuring out what is a label is no longer supported.
  • Loading branch information
tkoeppe committed Sep 20, 2018
1 parent 5aa2b94 commit 8ca0776
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -894,10 +894,7 @@ config_setting(

cc_binary(
name = "libdmlab_headless_hw.so",
linkopts = [
"-Wl,--version-script",
":dmlab.lds",
],
linkopts = ["-Wl,--version-script,$(location :dmlab.lds)"],
linkshared = 1,
linkstatic = 1,
visibility = ["//testing:__subpackages__"],
Expand All @@ -910,10 +907,7 @@ cc_binary(

cc_binary(
name = "libdmlab_headless_sw.so",
linkopts = [
"-Wl,--version-script",
":dmlab.lds",
],
linkopts = ["-Wl,--version-script,$(location :dmlab.lds)"],
linkshared = 1,
linkstatic = 1,
visibility = ["//testing:__subpackages__"],
Expand Down

0 comments on commit 8ca0776

Please sign in to comment.