Remove all references of windows_msvc config_setting
This commit is contained in:
parent
36032a2dfd
commit
bdd8bf316e
@ -115,12 +115,6 @@ config_setting(
|
|||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
)
|
)
|
||||||
|
|
||||||
config_setting(
|
|
||||||
name = "windows_msvc",
|
|
||||||
values = {"cpu": "x64_windows_msvc"},
|
|
||||||
visibility = ["//visibility:public"],
|
|
||||||
)
|
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "no_tensorflow_py_deps",
|
name = "no_tensorflow_py_deps",
|
||||||
define_values = {"no_tensorflow_py_deps": "true"},
|
define_values = {"no_tensorflow_py_deps": "true"},
|
||||||
@ -484,7 +478,6 @@ tf_cc_shared_object(
|
|||||||
linkopts = select({
|
linkopts = select({
|
||||||
"//tensorflow:darwin": [],
|
"//tensorflow:darwin": [],
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-Wl,--version-script", # This line must be directly followed by the version_script.lds file
|
"-Wl,--version-script", # This line must be directly followed by the version_script.lds file
|
||||||
"$(location //tensorflow:tf_framework_version_script.lds)",
|
"$(location //tensorflow:tf_framework_version_script.lds)",
|
||||||
@ -526,7 +519,6 @@ tf_cc_shared_object(
|
|||||||
"-Wl,-install_name,@rpath/libtensorflow.so",
|
"-Wl,-install_name,@rpath/libtensorflow.so",
|
||||||
],
|
],
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-z defs",
|
"-z defs",
|
||||||
"-Wl,--version-script", # This line must be directly followed by the version_script.lds file
|
"-Wl,--version-script", # This line must be directly followed by the version_script.lds file
|
||||||
@ -551,7 +543,6 @@ tf_cc_shared_object(
|
|||||||
"$(location //tensorflow:tf_exported_symbols.lds)",
|
"$(location //tensorflow:tf_exported_symbols.lds)",
|
||||||
],
|
],
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-z defs",
|
"-z defs",
|
||||||
"-Wl,--version-script", # This line must be directly followed by the version_script.lds file
|
"-Wl,--version-script", # This line must be directly followed by the version_script.lds file
|
||||||
|
@ -595,7 +595,6 @@ tf_cc_binary(
|
|||||||
copts = tf_copts(),
|
copts = tf_copts(),
|
||||||
linkopts = select({
|
linkopts = select({
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//tensorflow:darwin": [
|
"//tensorflow:darwin": [
|
||||||
"-lm",
|
"-lm",
|
||||||
"-lpthread",
|
"-lpthread",
|
||||||
|
@ -861,7 +861,6 @@ tf_cuda_library(
|
|||||||
"util/work_sharder.h",
|
"util/work_sharder.h",
|
||||||
] + select({
|
] + select({
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"util/memmapped_file_system.h",
|
"util/memmapped_file_system.h",
|
||||||
"util/memmapped_file_system_writer.h",
|
"util/memmapped_file_system_writer.h",
|
||||||
@ -2025,7 +2024,6 @@ cc_library(
|
|||||||
linkopts = select({
|
linkopts = select({
|
||||||
"//tensorflow:freebsd": [],
|
"//tensorflow:freebsd": [],
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-ldl",
|
"-ldl",
|
||||||
"-lpthread",
|
"-lpthread",
|
||||||
@ -2114,7 +2112,6 @@ cc_library(
|
|||||||
linkopts = select({
|
linkopts = select({
|
||||||
"//tensorflow:freebsd": [],
|
"//tensorflow:freebsd": [],
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": ["-ldl"],
|
"//conditions:default": ["-ldl"],
|
||||||
}),
|
}),
|
||||||
deps = [
|
deps = [
|
||||||
@ -2139,7 +2136,6 @@ cc_library(
|
|||||||
linkopts = select({
|
linkopts = select({
|
||||||
"//tensorflow:freebsd": [],
|
"//tensorflow:freebsd": [],
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": ["-ldl"],
|
"//conditions:default": ["-ldl"],
|
||||||
}),
|
}),
|
||||||
deps = [
|
deps = [
|
||||||
@ -2471,7 +2467,6 @@ tf_cuda_library(
|
|||||||
],
|
],
|
||||||
) + select({
|
) + select({
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"util/memmapped_file_system.cc",
|
"util/memmapped_file_system.cc",
|
||||||
"util/memmapped_file_system_writer.cc",
|
"util/memmapped_file_system_writer.cc",
|
||||||
@ -2482,7 +2477,6 @@ tf_cuda_library(
|
|||||||
linkopts = select({
|
linkopts = select({
|
||||||
"//tensorflow:freebsd": ["-lm"],
|
"//tensorflow:freebsd": ["-lm"],
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": ["-ldl", "-lm"],
|
"//conditions:default": ["-ldl", "-lm"],
|
||||||
}),
|
}),
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -467,7 +467,6 @@ def tf_platform_srcs(files):
|
|||||||
|
|
||||||
return select({
|
return select({
|
||||||
"//tensorflow:windows" : native.glob(windows_set),
|
"//tensorflow:windows" : native.glob(windows_set),
|
||||||
"//tensorflow:windows_msvc" : native.glob(windows_set),
|
|
||||||
"//conditions:default" : native.glob(posix_set),
|
"//conditions:default" : native.glob(posix_set),
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -479,7 +478,6 @@ def tf_additional_lib_hdrs(exclude = []):
|
|||||||
], exclude = exclude)
|
], exclude = exclude)
|
||||||
return select({
|
return select({
|
||||||
"//tensorflow:windows" : windows_hdrs,
|
"//tensorflow:windows" : windows_hdrs,
|
||||||
"//tensorflow:windows_msvc" : windows_hdrs,
|
|
||||||
"//conditions:default" : native.glob([
|
"//conditions:default" : native.glob([
|
||||||
"platform/default/*.h",
|
"platform/default/*.h",
|
||||||
"platform/posix/*.h",
|
"platform/posix/*.h",
|
||||||
@ -494,7 +492,6 @@ def tf_additional_lib_srcs(exclude = []):
|
|||||||
], exclude = exclude)
|
], exclude = exclude)
|
||||||
return select({
|
return select({
|
||||||
"//tensorflow:windows" : windows_srcs,
|
"//tensorflow:windows" : windows_srcs,
|
||||||
"//tensorflow:windows_msvc" : windows_srcs,
|
|
||||||
"//conditions:default" : native.glob([
|
"//conditions:default" : native.glob([
|
||||||
"platform/default/*.cc",
|
"platform/default/*.cc",
|
||||||
"platform/posix/*.cc",
|
"platform/posix/*.cc",
|
||||||
|
@ -345,7 +345,6 @@ tf_cc_binary(
|
|||||||
"$(location {})".format(LINKER_EXPORTED_SYMBOLS),
|
"$(location {})".format(LINKER_EXPORTED_SYMBOLS),
|
||||||
],
|
],
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-z defs",
|
"-z defs",
|
||||||
"-s",
|
"-s",
|
||||||
|
@ -137,14 +137,12 @@ def if_not_mobile(a):
|
|||||||
def if_not_windows(a):
|
def if_not_windows(a):
|
||||||
return select({
|
return select({
|
||||||
clean_dep("//tensorflow:windows"): [],
|
clean_dep("//tensorflow:windows"): [],
|
||||||
clean_dep("//tensorflow:windows_msvc"): [],
|
|
||||||
"//conditions:default": a,
|
"//conditions:default": a,
|
||||||
})
|
})
|
||||||
|
|
||||||
def if_windows(a):
|
def if_windows(a):
|
||||||
return select({
|
return select({
|
||||||
clean_dep("//tensorflow:windows"): a,
|
clean_dep("//tensorflow:windows"): a,
|
||||||
clean_dep("//tensorflow:windows_msvc"): a,
|
|
||||||
"//conditions:default": [],
|
"//conditions:default": [],
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -226,7 +224,6 @@ def tf_copts(android_optimization_level_override="-O2", is_external=False):
|
|||||||
clean_dep("//tensorflow:android"): android_copts,
|
clean_dep("//tensorflow:android"): android_copts,
|
||||||
clean_dep("//tensorflow:darwin"): [],
|
clean_dep("//tensorflow:darwin"): [],
|
||||||
clean_dep("//tensorflow:windows"): get_win_copts(is_external),
|
clean_dep("//tensorflow:windows"): get_win_copts(is_external),
|
||||||
clean_dep("//tensorflow:windows_msvc"): get_win_copts(is_external),
|
|
||||||
clean_dep("//tensorflow:ios"): ["-std=c++11"],
|
clean_dep("//tensorflow:ios"): ["-std=c++11"],
|
||||||
"//conditions:default": ["-pthread"]
|
"//conditions:default": ["-pthread"]
|
||||||
}))
|
}))
|
||||||
@ -286,7 +283,6 @@ def _rpath_linkopts(name):
|
|||||||
"-Wl,%s" % (_make_search_paths("@loader_path", levels_to_root),),
|
"-Wl,%s" % (_make_search_paths("@loader_path", levels_to_root),),
|
||||||
],
|
],
|
||||||
clean_dep("//tensorflow:windows"): [],
|
clean_dep("//tensorflow:windows"): [],
|
||||||
clean_dep("//tensorflow:windows_msvc"): [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-Wl,%s" % (_make_search_paths("$$ORIGIN", levels_to_root),),
|
"-Wl,%s" % (_make_search_paths("$$ORIGIN", levels_to_root),),
|
||||||
],
|
],
|
||||||
@ -656,7 +652,6 @@ def tf_cc_test(name,
|
|||||||
"-pie",
|
"-pie",
|
||||||
],
|
],
|
||||||
clean_dep("//tensorflow:windows"): [],
|
clean_dep("//tensorflow:windows"): [],
|
||||||
clean_dep("//tensorflow:windows_msvc"): [],
|
|
||||||
clean_dep("//tensorflow:darwin"): [
|
clean_dep("//tensorflow:darwin"): [
|
||||||
"-lm",
|
"-lm",
|
||||||
],
|
],
|
||||||
@ -838,7 +833,6 @@ def tf_cc_test_mkl(srcs,
|
|||||||
"-pie",
|
"-pie",
|
||||||
],
|
],
|
||||||
clean_dep("//tensorflow:windows"): [],
|
clean_dep("//tensorflow:windows"): [],
|
||||||
clean_dep("//tensorflow:windows_msvc"): [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-lpthread",
|
"-lpthread",
|
||||||
"-lm"
|
"-lm"
|
||||||
@ -1351,7 +1345,6 @@ def tf_custom_op_library(name, srcs=[], gpu_srcs=[], deps=[], linkopts=[]):
|
|||||||
"-lm",
|
"-lm",
|
||||||
],
|
],
|
||||||
clean_dep("//tensorflow:windows"): [],
|
clean_dep("//tensorflow:windows"): [],
|
||||||
clean_dep("//tensorflow:windows_msvc"): [],
|
|
||||||
clean_dep("//tensorflow:darwin"): [],
|
clean_dep("//tensorflow:darwin"): [],
|
||||||
}),)
|
}),)
|
||||||
|
|
||||||
@ -1461,7 +1454,6 @@ def tf_py_wrap_cc(name,
|
|||||||
"$(location %s.lds)"%vscriptname,
|
"$(location %s.lds)"%vscriptname,
|
||||||
],
|
],
|
||||||
clean_dep("//tensorflow:windows"): [],
|
clean_dep("//tensorflow:windows"): [],
|
||||||
clean_dep("//tensorflow:windows_msvc"): [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-Wl,--version-script",
|
"-Wl,--version-script",
|
||||||
"$(location %s.lds)"%vscriptname,
|
"$(location %s.lds)"%vscriptname,
|
||||||
@ -1472,7 +1464,6 @@ def tf_py_wrap_cc(name,
|
|||||||
"%s.lds"%vscriptname,
|
"%s.lds"%vscriptname,
|
||||||
],
|
],
|
||||||
clean_dep("//tensorflow:windows"): [],
|
clean_dep("//tensorflow:windows"): [],
|
||||||
clean_dep("//tensorflow:windows_msvc"): [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"%s.lds"%vscriptname,
|
"%s.lds"%vscriptname,
|
||||||
]
|
]
|
||||||
|
@ -176,7 +176,6 @@ sh_binary(
|
|||||||
srcs = ["build_pip_package.sh"],
|
srcs = ["build_pip_package.sh"],
|
||||||
data = select({
|
data = select({
|
||||||
"//tensorflow:windows": [":simple_console_for_windows"],
|
"//tensorflow:windows": [":simple_console_for_windows"],
|
||||||
"//tensorflow:windows_msvc": [":simple_console_for_windows"],
|
|
||||||
"//conditions:default": COMMON_PIP_DEPS + [
|
"//conditions:default": COMMON_PIP_DEPS + [
|
||||||
":simple_console",
|
":simple_console",
|
||||||
"//tensorflow/contrib/lite/python:interpreter_test_data",
|
"//tensorflow/contrib/lite/python:interpreter_test_data",
|
||||||
|
@ -49,7 +49,6 @@ cc_library(
|
|||||||
copts = if_ios(["-DGOOGLE_LOGGING"]),
|
copts = if_ios(["-DGOOGLE_LOGGING"]),
|
||||||
linkopts = select({
|
linkopts = select({
|
||||||
"//tensorflow:windows": [],
|
"//tensorflow:windows": [],
|
||||||
"//tensorflow:windows_msvc": [],
|
|
||||||
"//tensorflow:darwin": [
|
"//tensorflow:darwin": [
|
||||||
"-lm",
|
"-lm",
|
||||||
"-lpthread",
|
"-lpthread",
|
||||||
|
14
third_party/curl.BUILD
vendored
14
third_party/curl.BUILD
vendored
@ -243,7 +243,6 @@ cc_library(
|
|||||||
"lib/vtls/darwinssl.c",
|
"lib/vtls/darwinssl.c",
|
||||||
],
|
],
|
||||||
"@org_tensorflow//tensorflow:windows": CURL_WIN_SRCS,
|
"@org_tensorflow//tensorflow:windows": CURL_WIN_SRCS,
|
||||||
"@org_tensorflow//tensorflow:windows_msvc": CURL_WIN_SRCS,
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"lib/vtls/openssl.c",
|
"lib/vtls/openssl.c",
|
||||||
],
|
],
|
||||||
@ -260,7 +259,6 @@ cc_library(
|
|||||||
],
|
],
|
||||||
copts = select({
|
copts = select({
|
||||||
"@org_tensorflow//tensorflow:windows": CURL_WIN_COPTS,
|
"@org_tensorflow//tensorflow:windows": CURL_WIN_COPTS,
|
||||||
"@org_tensorflow//tensorflow:windows_msvc": CURL_WIN_COPTS,
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-Iexternal/curl/lib",
|
"-Iexternal/curl/lib",
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE",
|
||||||
@ -280,10 +278,6 @@ cc_library(
|
|||||||
# See curl.h for discussion of write size and Windows
|
# See curl.h for discussion of write size and Windows
|
||||||
"/DCURL_MAX_WRITE_SIZE=16384",
|
"/DCURL_MAX_WRITE_SIZE=16384",
|
||||||
],
|
],
|
||||||
"@org_tensorflow//tensorflow:windows_msvc": [
|
|
||||||
# See curl.h for discussion of write size and Windows
|
|
||||||
"/DCURL_MAX_WRITE_SIZE=16384",
|
|
||||||
],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-DCURL_MAX_WRITE_SIZE=65536",
|
"-DCURL_MAX_WRITE_SIZE=65536",
|
||||||
],
|
],
|
||||||
@ -307,12 +301,6 @@ cc_library(
|
|||||||
"-DEFAULTLIB:crypt32.lib",
|
"-DEFAULTLIB:crypt32.lib",
|
||||||
"-DEFAULTLIB:Normaliz.lib",
|
"-DEFAULTLIB:Normaliz.lib",
|
||||||
],
|
],
|
||||||
"@org_tensorflow//tensorflow:windows_msvc": [
|
|
||||||
"-DEFAULTLIB:ws2_32.lib",
|
|
||||||
"-DEFAULTLIB:advapi32.lib",
|
|
||||||
"-DEFAULTLIB:crypt32.lib",
|
|
||||||
"-DEFAULTLIB:Normaliz.lib",
|
|
||||||
],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-lrt",
|
"-lrt",
|
||||||
],
|
],
|
||||||
@ -323,7 +311,6 @@ cc_library(
|
|||||||
] + select({
|
] + select({
|
||||||
"@org_tensorflow//tensorflow:ios": [],
|
"@org_tensorflow//tensorflow:ios": [],
|
||||||
"@org_tensorflow//tensorflow:windows": [],
|
"@org_tensorflow//tensorflow:windows": [],
|
||||||
"@org_tensorflow//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"@boringssl//:ssl",
|
"@boringssl//:ssl",
|
||||||
],
|
],
|
||||||
@ -426,7 +413,6 @@ cc_binary(
|
|||||||
],
|
],
|
||||||
copts = select({
|
copts = select({
|
||||||
"@org_tensorflow//tensorflow:windows": CURL_BIN_WIN_COPTS,
|
"@org_tensorflow//tensorflow:windows": CURL_BIN_WIN_COPTS,
|
||||||
"@org_tensorflow//tensorflow:windows_msvc": CURL_BIN_WIN_COPTS,
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-Iexternal/curl/lib",
|
"-Iexternal/curl/lib",
|
||||||
"-D_GNU_SOURCE",
|
"-D_GNU_SOURCE",
|
||||||
|
8
third_party/farmhash.BUILD
vendored
8
third_party/farmhash.BUILD
vendored
@ -2,13 +2,6 @@ licenses(["notice"]) # MIT
|
|||||||
|
|
||||||
exports_files(["COPYING"])
|
exports_files(["COPYING"])
|
||||||
|
|
||||||
config_setting(
|
|
||||||
name = "windows_msvc",
|
|
||||||
values = {
|
|
||||||
"cpu": "x64_windows_msvc",
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "windows",
|
name = "windows",
|
||||||
values = {
|
values = {
|
||||||
@ -23,7 +16,6 @@ cc_library(
|
|||||||
# Disable __builtin_expect support on Windows
|
# Disable __builtin_expect support on Windows
|
||||||
copts = select({
|
copts = select({
|
||||||
":windows": ["/DFARMHASH_OPTIONAL_BUILTIN_EXPECT"],
|
":windows": ["/DFARMHASH_OPTIONAL_BUILTIN_EXPECT"],
|
||||||
":windows_msvc": ["/DFARMHASH_OPTIONAL_BUILTIN_EXPECT"],
|
|
||||||
"//conditions:default": [],
|
"//conditions:default": [],
|
||||||
}),
|
}),
|
||||||
includes = ["src/."],
|
includes = ["src/."],
|
||||||
|
3
third_party/flatbuffers/flatbuffers.BUILD
vendored
3
third_party/flatbuffers/flatbuffers.BUILD
vendored
@ -18,8 +18,7 @@ config_setting(
|
|||||||
)
|
)
|
||||||
|
|
||||||
FLATBUFFERS_COPTS = select({
|
FLATBUFFERS_COPTS = select({
|
||||||
"@bazel_tools//src:windows": [],
|
":windows": [],
|
||||||
"@bazel_tools//src:windows_msvc": [],
|
|
||||||
"//conditions:default": ["-Wno-implicit-fallthrough", "-fexceptions"],
|
"//conditions:default": ["-Wno-implicit-fallthrough", "-fexceptions"],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
9
third_party/gif.BUILD
vendored
9
third_party/gif.BUILD
vendored
@ -21,7 +21,6 @@ cc_library(
|
|||||||
],
|
],
|
||||||
hdrs = ["lib/gif_lib.h"],
|
hdrs = ["lib/gif_lib.h"],
|
||||||
defines = select({
|
defines = select({
|
||||||
#"@org_tensorflow//tensorflow:android": [
|
|
||||||
":android": [
|
":android": [
|
||||||
"S_IREAD=S_IRUSR",
|
"S_IREAD=S_IRUSR",
|
||||||
"S_IWRITE=S_IWUSR",
|
"S_IWRITE=S_IWUSR",
|
||||||
@ -33,7 +32,6 @@ cc_library(
|
|||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
deps = select({
|
deps = select({
|
||||||
":windows": [":windows_polyfill"],
|
":windows": [":windows_polyfill"],
|
||||||
":windows_msvc": [":windows_polyfill"],
|
|
||||||
"//conditions:default": [],
|
"//conditions:default": [],
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
@ -50,13 +48,6 @@ genrule(
|
|||||||
cmd = "touch $@",
|
cmd = "touch $@",
|
||||||
)
|
)
|
||||||
|
|
||||||
config_setting(
|
|
||||||
name = "windows_msvc",
|
|
||||||
values = {
|
|
||||||
"cpu": "x64_windows_msvc",
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "windows",
|
name = "windows",
|
||||||
values = {
|
values = {
|
||||||
|
8
third_party/jpeg/jpeg.BUILD
vendored
8
third_party/jpeg/jpeg.BUILD
vendored
@ -22,7 +22,6 @@ libjpegturbo_copts = select({
|
|||||||
"-w",
|
"-w",
|
||||||
],
|
],
|
||||||
":windows": WIN_COPTS,
|
":windows": WIN_COPTS,
|
||||||
":windows_msvc": WIN_COPTS,
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-O3",
|
"-O3",
|
||||||
"-w",
|
"-w",
|
||||||
@ -423,7 +422,6 @@ genrule(
|
|||||||
outs = ["jconfig.h"],
|
outs = ["jconfig.h"],
|
||||||
cmd = select({
|
cmd = select({
|
||||||
":windows": "cp $(location jconfig_win.h) $@",
|
":windows": "cp $(location jconfig_win.h) $@",
|
||||||
":windows_msvc": "cp $(location jconfig_win.h) $@",
|
|
||||||
":k8": "cp $(location jconfig_nowin_simd.h) $@",
|
":k8": "cp $(location jconfig_nowin_simd.h) $@",
|
||||||
":armeabi-v7a": "cp $(location jconfig_nowin_simd.h) $@",
|
":armeabi-v7a": "cp $(location jconfig_nowin_simd.h) $@",
|
||||||
":arm64-v8a": "cp $(location jconfig_nowin_simd.h) $@",
|
":arm64-v8a": "cp $(location jconfig_nowin_simd.h) $@",
|
||||||
@ -441,7 +439,6 @@ genrule(
|
|||||||
outs = ["jconfigint.h"],
|
outs = ["jconfigint.h"],
|
||||||
cmd = select({
|
cmd = select({
|
||||||
":windows": "cp $(location jconfigint_win.h) $@",
|
":windows": "cp $(location jconfigint_win.h) $@",
|
||||||
":windows_msvc": "cp $(location jconfigint_win.h) $@",
|
|
||||||
"//conditions:default": "cp $(location jconfigint_nowin.h) $@",
|
"//conditions:default": "cp $(location jconfigint_nowin.h) $@",
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
@ -541,11 +538,6 @@ config_setting(
|
|||||||
values = {"cpu": "x64_windows"},
|
values = {"cpu": "x64_windows"},
|
||||||
)
|
)
|
||||||
|
|
||||||
config_setting(
|
|
||||||
name = "windows_msvc",
|
|
||||||
values = {"cpu": "x64_windows_msvc"},
|
|
||||||
)
|
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "linux_ppc64le",
|
name = "linux_ppc64le",
|
||||||
values = {"cpu": "ppc"},
|
values = {"cpu": "ppc"},
|
||||||
|
6
third_party/lmdb.BUILD
vendored
6
third_party/lmdb.BUILD
vendored
@ -20,7 +20,6 @@ cc_library(
|
|||||||
],
|
],
|
||||||
linkopts = select({
|
linkopts = select({
|
||||||
":windows": ["-DEFAULTLIB:advapi32.lib"], # InitializeSecurityDescriptor, SetSecurityDescriptorDacl
|
":windows": ["-DEFAULTLIB:advapi32.lib"], # InitializeSecurityDescriptor, SetSecurityDescriptorDacl
|
||||||
":windows_msvc": ["-DEFAULTLIB:advapi32.lib"],
|
|
||||||
"//conditions:default": ["-lpthread"],
|
"//conditions:default": ["-lpthread"],
|
||||||
}),
|
}),
|
||||||
visibility = ["//visibility:public"],
|
visibility = ["//visibility:public"],
|
||||||
@ -30,8 +29,3 @@ config_setting(
|
|||||||
name = "windows",
|
name = "windows",
|
||||||
values = {"cpu": "x64_windows"},
|
values = {"cpu": "x64_windows"},
|
||||||
)
|
)
|
||||||
|
|
||||||
config_setting(
|
|
||||||
name = "windows_msvc",
|
|
||||||
values = {"cpu": "x64_windows_msvc"},
|
|
||||||
)
|
|
||||||
|
9
third_party/nasm.BUILD
vendored
9
third_party/nasm.BUILD
vendored
@ -142,7 +142,6 @@ cc_binary(
|
|||||||
],
|
],
|
||||||
copts = select({
|
copts = select({
|
||||||
":windows": [],
|
":windows": [],
|
||||||
":windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-w",
|
"-w",
|
||||||
"-std=c99",
|
"-std=c99",
|
||||||
@ -150,7 +149,6 @@ cc_binary(
|
|||||||
}),
|
}),
|
||||||
defines = select({
|
defines = select({
|
||||||
":windows": [],
|
":windows": [],
|
||||||
":windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"HAVE_SNPRINTF",
|
"HAVE_SNPRINTF",
|
||||||
"HAVE_SYS_TYPES_H",
|
"HAVE_SYS_TYPES_H",
|
||||||
@ -159,13 +157,6 @@ cc_binary(
|
|||||||
visibility = ["@jpeg//:__pkg__"],
|
visibility = ["@jpeg//:__pkg__"],
|
||||||
)
|
)
|
||||||
|
|
||||||
config_setting(
|
|
||||||
name = "windows_msvc",
|
|
||||||
values = {
|
|
||||||
"cpu": "x64_windows_msvc",
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "windows",
|
name = "windows",
|
||||||
values = {
|
values = {
|
||||||
|
1
third_party/snappy.BUILD
vendored
1
third_party/snappy.BUILD
vendored
@ -20,7 +20,6 @@ cc_library(
|
|||||||
hdrs = ["snappy.h"],
|
hdrs = ["snappy.h"],
|
||||||
copts = ["-DHAVE_CONFIG_H"] + select({
|
copts = ["-DHAVE_CONFIG_H"] + select({
|
||||||
"@org_tensorflow//tensorflow:windows": [],
|
"@org_tensorflow//tensorflow:windows": [],
|
||||||
"@org_tensorflow//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-fno-exceptions",
|
"-fno-exceptions",
|
||||||
"-Wno-sign-compare",
|
"-Wno-sign-compare",
|
||||||
|
8
third_party/sqlite.BUILD
vendored
8
third_party/sqlite.BUILD
vendored
@ -4,7 +4,6 @@
|
|||||||
licenses(["unencumbered"]) # Public Domain
|
licenses(["unencumbered"]) # Public Domain
|
||||||
|
|
||||||
SQLITE_COPTS = [
|
SQLITE_COPTS = [
|
||||||
"-Os",
|
|
||||||
"-DSQLITE_ENABLE_JSON1",
|
"-DSQLITE_ENABLE_JSON1",
|
||||||
"-DHAVE_DECL_STRERROR_R=1",
|
"-DHAVE_DECL_STRERROR_R=1",
|
||||||
"-DHAVE_STDINT_H=1",
|
"-DHAVE_STDINT_H=1",
|
||||||
@ -15,15 +14,14 @@ SQLITE_COPTS = [
|
|||||||
"@org_tensorflow//tensorflow:windows": [
|
"@org_tensorflow//tensorflow:windows": [
|
||||||
"-DSQLITE_MAX_TRIGGER_DEPTH=100",
|
"-DSQLITE_MAX_TRIGGER_DEPTH=100",
|
||||||
],
|
],
|
||||||
"@org_tensorflow//tensorflow:windows_msvc": [
|
|
||||||
"-DSQLITE_MAX_TRIGGER_DEPTH=100",
|
|
||||||
],
|
|
||||||
"@org_tensorflow//tensorflow:darwin": [
|
"@org_tensorflow//tensorflow:darwin": [
|
||||||
|
"-Os",
|
||||||
"-DHAVE_GMTIME_R=1",
|
"-DHAVE_GMTIME_R=1",
|
||||||
"-DHAVE_LOCALTIME_R=1",
|
"-DHAVE_LOCALTIME_R=1",
|
||||||
"-DHAVE_USLEEP=1",
|
"-DHAVE_USLEEP=1",
|
||||||
],
|
],
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
|
"-Os",
|
||||||
"-DHAVE_FDATASYNC=1",
|
"-DHAVE_FDATASYNC=1",
|
||||||
"-DHAVE_GMTIME_R=1",
|
"-DHAVE_GMTIME_R=1",
|
||||||
"-DHAVE_LOCALTIME_R=1",
|
"-DHAVE_LOCALTIME_R=1",
|
||||||
@ -48,7 +46,7 @@ cc_library(
|
|||||||
"SQLITE_OMIT_DEPRECATED",
|
"SQLITE_OMIT_DEPRECATED",
|
||||||
],
|
],
|
||||||
linkopts = select({
|
linkopts = select({
|
||||||
"@org_tensorflow//tensorflow:windows_msvc": [],
|
"@org_tensorflow//tensorflow:windows": [],
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-ldl",
|
"-ldl",
|
||||||
"-lpthread",
|
"-lpthread",
|
||||||
|
6
third_party/swig.BUILD
vendored
6
third_party/swig.BUILD
vendored
@ -71,7 +71,6 @@ cc_binary(
|
|||||||
],
|
],
|
||||||
copts = ["$(STACK_FRAME_UNLIMITED)"] + select({
|
copts = ["$(STACK_FRAME_UNLIMITED)"] + select({
|
||||||
":windows": [],
|
":windows": [],
|
||||||
":windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-Wno-parentheses",
|
"-Wno-parentheses",
|
||||||
"-Wno-unused-variable",
|
"-Wno-unused-variable",
|
||||||
@ -331,11 +330,6 @@ genrule(
|
|||||||
" $< >$@",
|
" $< >$@",
|
||||||
)
|
)
|
||||||
|
|
||||||
config_setting(
|
|
||||||
name = "windows_msvc",
|
|
||||||
values = {"cpu": "x64_windows_msvc"},
|
|
||||||
)
|
|
||||||
|
|
||||||
config_setting(
|
config_setting(
|
||||||
name = "windows",
|
name = "windows",
|
||||||
values = {"cpu": "x64_windows"},
|
values = {"cpu": "x64_windows"},
|
||||||
|
1
third_party/zlib.BUILD
vendored
1
third_party/zlib.BUILD
vendored
@ -34,7 +34,6 @@ cc_library(
|
|||||||
hdrs = ["zlib.h"],
|
hdrs = ["zlib.h"],
|
||||||
copts = select({
|
copts = select({
|
||||||
"@org_tensorflow//tensorflow:windows": [],
|
"@org_tensorflow//tensorflow:windows": [],
|
||||||
"@org_tensorflow//tensorflow:windows_msvc": [],
|
|
||||||
"//conditions:default": [
|
"//conditions:default": [
|
||||||
"-Wno-shift-negative-value",
|
"-Wno-shift-negative-value",
|
||||||
"-DZ_HAVE_UNISTD_H",
|
"-DZ_HAVE_UNISTD_H",
|
||||||
|
Loading…
Reference in New Issue
Block a user