Add linux_arm64 and linux_armhf config_setting.
PiperOrigin-RevId: 172018709
This commit is contained in:
parent
7c2993a235
commit
abb6b8e73c
@ -141,6 +141,22 @@ config_setting(
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "linux_armhf",
|
||||
values = {
|
||||
"cpu": "armeabi-v7a",
|
||||
},
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "linux_arm64",
|
||||
values = {
|
||||
"cpu": "arm64-v8a",
|
||||
},
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "debug",
|
||||
values = {
|
||||
|
@ -302,6 +302,8 @@ def target_llvm_triple():
|
||||
"//tensorflow:android_arm": "armv7-none-android",
|
||||
"//tensorflow:android_arm64": "aarch64-none-android",
|
||||
"//tensorflow:android_x86": "i686-none-android",
|
||||
"//tensorflow:linux_armhf": "armv7-none-linux-gnueabihf",
|
||||
"//tensorflow:linux_arm64": "aarch64-none-linux-gnu",
|
||||
"//tensorflow:linux_ppc64le": "ppc64le-ibm-linux-gnu",
|
||||
"//tensorflow:darwin": "x86_64-none-darwin",
|
||||
"//conditions:default": "x86_64-pc-linux",
|
||||
|
@ -112,6 +112,9 @@ def if_ios(a):
|
||||
def if_mobile(a):
|
||||
return select({
|
||||
clean_dep("//tensorflow:android"): a,
|
||||
# Treat arm linux devices as mobile.
|
||||
clean_dep("//tensorflow:linux_arm64"): a,
|
||||
clean_dep("//tensorflow:linux_armhf"): a,
|
||||
clean_dep("//tensorflow:ios"): a,
|
||||
"//conditions:default": [],
|
||||
})
|
||||
@ -120,6 +123,9 @@ def if_mobile(a):
|
||||
def if_not_mobile(a):
|
||||
return select({
|
||||
clean_dep("//tensorflow:android"): [],
|
||||
# Treat arm linux devices as mobile.
|
||||
clean_dep("//tensorflow:linux_arm64"): [],
|
||||
clean_dep("//tensorflow:linux_armhf"): [],
|
||||
clean_dep("//tensorflow:ios"): [],
|
||||
"//conditions:default": a,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user