Avoid setting unsupported "-fexceptions" with MSVC

PiperOrigin-RevId: 339107576
Change-Id: Ibf8ccf481ce604f6789220b59b6cb8e0f1ffa92f
This commit is contained in:
Geoffrey Martin-Noble 2020-10-26 13:37:57 -07:00 committed by TensorFlower Gardener
parent 237c3268e9
commit 0e8ea85a42
2 changed files with 8 additions and 4 deletions

View File

@ -57,8 +57,10 @@ cc_library(
"src/cpu/xbyak/*.h",
]) + [":mkldnn_version_h"],
hdrs = glob(["include/*"]),
copts = [
"-fexceptions",
copts = select({
"@org_tensorflow//tensorflow:windows": [],
"//conditions:default": ["-fexceptions"],
}) + [
"-DMKLDNN_THR=MKLDNN_THR_SEQ", # Disables threading.
],
includes = [

View File

@ -77,8 +77,10 @@ cc_library(
":dnnl_version_h",
],
hdrs = glob(["include/*"]),
copts = [
"-fexceptions",
copts = select({
"@org_tensorflow//tensorflow:windows": [],
"//conditions:default": ["-fexceptions"],
}) + [
"-UUSE_MKL",
"-UUSE_CBLAS",
] + tf_openmp_copts(),