提交 3157d811 编写于 作者: K Karim Nosir 提交者: TensorFlower Gardener

Don't create stripped binary for debug builds

PiperOrigin-RevId: 235294387
上级 f45257b6
......@@ -89,20 +89,21 @@ def tflite_jni_linkopts_unstripped():
def tflite_linkopts():
"""Defines linker flags to reduce size of TFLite binary."""
return tflite_linkopts_unstripped() + select({
"//tensorflow:android": [
"-s", # Omit symbol table.
"//tensorflow:debug": [],
"//conditions:default": [
"-s", # Omit symbol table, for all non debug builds
],
"//conditions:default": [],
})
def tflite_jni_linkopts():
"""Defines linker flags to reduce size of TFLite binary with JNI."""
return tflite_jni_linkopts_unstripped() + select({
"//tensorflow:android": [
"-s", # Omit symbol table.
"-latomic", # Required for some uses of ISO C++11 <atomic> in x86.
return tflite_jni_linkopts_unstripped() + [
"-latomic", # Required for some uses of ISO C++11 <atomic> in x86.]
] + select({
"//tensorflow:debug": [],
"//conditions:default": [
"-s", # Omit symbol table, for all non debug builds
],
"//conditions:default": [],
})
def tflite_jni_binary(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册