From 1b4c2eb3c3a0f18b25dd64beefb3a4fbb090f47b Mon Sep 17 00:00:00 2001 From: Santeri Hannula Date: Thu, 25 Jul 2024 13:42:18 +0300 Subject: [PATCH] build: add `configure_options` to libexpat build --- bazel/third_party/expat/expat.BUILD | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bazel/third_party/expat/expat.BUILD b/bazel/third_party/expat/expat.BUILD index 030f81ed78..1c0a6bc36d 100644 --- a/bazel/third_party/expat/expat.BUILD +++ b/bazel/third_party/expat/expat.BUILD @@ -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"],