File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -181,13 +181,22 @@ def tflite_linkopts_no_undefined():
181
181
}),
182
182
)
183
183
184
+ def tflite_pagesize_linkopts ():
185
+ """Defines linker flags for setting the page size."""
186
+ return select ({
187
+ clean_dep ("//tensorflow:android_arm64" ): [
188
+ "-Wl,-z,max-page-size=16384" ,
189
+ ],
190
+ "//conditions:default" : [],
191
+ })
192
+
184
193
def tflite_linkopts ():
185
194
"""Defines linker flags for linking TFLite binary."""
186
- return tflite_linkopts_unstripped () + tflite_symbol_opts ()
195
+ return tflite_linkopts_unstripped () + tflite_symbol_opts () + tflite_pagesize_linkopts ()
187
196
188
197
def tflite_jni_linkopts ():
189
198
"""Defines linker flags for linking TFLite binary with JNI."""
190
- return tflite_jni_linkopts_unstripped () + tflite_symbol_opts ()
199
+ return tflite_jni_linkopts_unstripped () + tflite_symbol_opts () + tflite_pagesize_linkopts ()
191
200
192
201
def tflite_jni_binary (
193
202
name ,
You can’t perform that action at this time.
0 commit comments