Skip to content

Commit

Permalink
fix build for Power
Browse files Browse the repository at this point in the history
The zip -d flag will error if it doesn't find that extension.
This is a fix for Power, but doesn't fix the default case.

Signed-off-by: Christy Norman <christy@linux.vnet.ibm.com>

Closes bazelbuild#9346.

PiperOrigin-RevId: 271566240
  • Loading branch information
clnperez committed Oct 4, 2019
1 parent 18cd904 commit ceca6d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/conditions/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ filegroup(
visibility = ["//src:__pkg__"],
)

config_setting(
name = "linux_ppc",
values = {"cpu": "ppc"},
visibility = ["//visibility:public"],
)

config_setting(
name = "linux_x86_64",
values = {"cpu": "k8"},
Expand Down
1 change: 1 addition & 0 deletions third_party/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ UNNECESSARY_DYNAMIC_LIBRARIES = select({
"//src/conditions:darwin": "*.so *.dll",
"//src/conditions:darwin_x86_64": "*.so *.dll",
"//src/conditions:linux_x86_64": "*.jnilib *.dll",
"//src/conditions:linux_ppc": "*.so *.jnilib *.dll",
# The .so file is an x86 one, so we can just remove it if the CPU is not x86
"//src/conditions:arm": "*.so *.jnilib *.dll",
"//src/conditions:linux_aarch64": "*.so *.jnilib *.dll",
Expand Down

0 comments on commit ceca6d9

Please sign in to comment.