Skip to content

Commit

Permalink
hermes_jni linkopt select (#517)
Browse files Browse the repository at this point in the history
select for hermes_jni linkopts
  • Loading branch information
brocollie08 authored Sep 26, 2024
1 parent f270369 commit 1a78aa4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jvm/hermes/src/main/jni/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a78aa4

Please sign in to comment.