Skip to content

Commit

Permalink
Merge pull request #9510 from haberman/manylinux-aarch64
Browse files Browse the repository at this point in the history
Changes to build aarch64 under manylinux.
  • Loading branch information
haberman committed Feb 16, 2022
2 parents 8bfa7d0 + 9d01899 commit b0bf163
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions toolchain/BUILD
Expand Up @@ -44,15 +44,16 @@ cc_toolchain_config(
bit_flag = "-m64",
cpp_flag = "-lstdc++",
extra_compiler_flags = [
"-I/usr/aarch64-linux-gnu/include/c++/8/aarch64-linux-gnu/",
"-I/usr/aarch64-linux-gnu/include/c++/8"
"-I/opt/manylinux/2014/aarch64/usr/include/c++/10/aarch64-redhat-linux",
"-I/opt/manylinux/2014/aarch64/usr/include/c++/10"
],
extra_include = "/usr/include",
sysroot = "/opt/manylinux/2014/aarch64",
linker_path = "/usr/bin/ld",
target_cpu = "aarch64",
target_full_name = "aarch64-linux-gnu",
toolchain_dir = "/usr/aarch64-linux-gnu/include",
toolchain_name = "linux_aarch_64",
# Don't really need this, setting it because it's required.
toolchain_dir = "/opt/manylinux/2014/aarch64/usr/include",
)

cc_toolchain_config(
Expand Down
2 changes: 1 addition & 1 deletion toolchain/cc_toolchain_config.bzl
Expand Up @@ -108,7 +108,7 @@ def _impl(ctx):
enabled = (ctx.attr.sysroot != ""),
flag_sets = [
flag_set(
actions = all_link_actions,
actions = all_link_actions + all_compile_actions,
flag_groups = [
flag_group(
flags = [
Expand Down

0 comments on commit b0bf163

Please sign in to comment.