From 499d3ee992a8493fd9930ed4b4ff65c6f67625e1 Mon Sep 17 00:00:00 2001 From: sentony93 Date: Thu, 26 Sep 2024 14:18:17 -0400 Subject: [PATCH] select for hermes_jni linkopts --- jvm/hermes/src/main/jni/BUILD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/jvm/hermes/src/main/jni/BUILD b/jvm/hermes/src/main/jni/BUILD index 0a4f3c0f8..abd7899fa 100644 --- a/jvm/hermes/src/main/jni/BUILD +++ b/jvm/hermes/src/main/jni/BUILD @@ -35,7 +35,12 @@ cc_library( ], "//conditions:default": [], }), - linkopts = ["-Wl,-z,max-page-size=16384"], + linkopts = select({ + # Host build + ":should_include_jni": [], + # Android build + "//conditions:default": ["-Wl,-z,max-page-size=16384"], + }), visibility = ["//visibility:public"], deps = select({ # Host build