diff options
author | Loo Rong Jie <loorongjie@gmail.com> | 2018-07-04 13:18:02 +0800 |
---|---|---|
committer | Loo Rong Jie <loorongjie@gmail.com> | 2018-07-04 13:18:02 +0800 |
commit | 3db3f1f83a562587cc207106258751d089c48ae4 (patch) | |
tree | af21d52aa3d974853d4350f35201b3fb8df458a9 /tensorflow/tensorflow.bzl | |
parent | 1b27fba59957714db61af5b8da9a7bc5f05604c1 (diff) |
[MSVC] Disable C++ exceptions
Diffstat (limited to 'tensorflow/tensorflow.bzl')
-rw-r--r-- | tensorflow/tensorflow.bzl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl index e4632c4811..c3bd854940 100644 --- a/tensorflow/tensorflow.bzl +++ b/tensorflow/tensorflow.bzl @@ -180,9 +180,12 @@ def get_win_copts(is_external=False): "/DEIGEN_AVOID_STL_ARRAY", "/Iexternal/gemmlowp", "/wd4018", # -Wno-sign-compare - "/U_HAS_EXCEPTIONS", - "/D_HAS_EXCEPTIONS=1", - "/EHsc", # -fno-exceptions + # Bazel's CROSSTOOL currently pass /EHsc to enable exception by + # default. We can't pass /EHs-c- to disable exception, otherwise + # we will get a waterfall of flag conflict warnings. Wait for + # Bazel to fix this. + # "/D_HAS_EXCEPTIONS=0", + # "/EHs-c-", "/DNOGDI", ] if is_external: |