diff options
author | Justine Tunney <jart@google.com> | 2018-01-16 18:25:34 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-01-16 18:35:43 -0800 |
commit | 786dcb0b3ee719ae44ac23ea6ee878bbb04792cd (patch) | |
tree | 39f2faa05599f7a6882ccf38e57ddc4779f13a6d /third_party/jsoncpp.BUILD | |
parent | 488d61cb3a67cc71de3d7815078a875999c23c04 (diff) |
Disable exceptions in TensorFlow jsoncpp build
This is necessary to compile with Clang. Since the TF GCP code doesn't have any
try/catch statements, this could be a bug fix.
PiperOrigin-RevId: 182143536
Diffstat (limited to 'third_party/jsoncpp.BUILD')
-rw-r--r-- | third_party/jsoncpp.BUILD | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/third_party/jsoncpp.BUILD b/third_party/jsoncpp.BUILD index ce672a72ec..65f98410b2 100644 --- a/third_party/jsoncpp.BUILD +++ b/third_party/jsoncpp.BUILD @@ -22,6 +22,7 @@ cc_library( "include/json/value.h", "include/json/writer.h", ], + copts = ["-DJSON_USE_EXCEPTION=0"], includes = ["include"], visibility = ["//visibility:public"], deps = [":private"], |