Skip to content

Commit

Permalink
build: add configure_options to libexpat build
Browse files Browse the repository at this point in the history
  • Loading branch information
ripperi committed Jul 25, 2024
1 parent c590851 commit 1b4c2eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bazel/third_party/expat/expat.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ configure_make(
"@platforms//os:macos": ["--jobs=`sysctl -n hw.logicalcpu`"],
"//conditions:default": ["--jobs=`nproc`"],
}),
configure_options = [
] + select({
"@//:linux_aarch64": ["--host=aarch64-linux-musl"],
"@//:linux_x86_64": ["--host=x86_64-linux-musl"],
"//conditions:default": [],
}),
copts = ["-O3"],
lib_source = ":all",
out_static_libs = ["libexpat.a"],
Expand Down

0 comments on commit 1b4c2eb

Please sign in to comment.