Skip to content

Commit

Permalink
[BUILD] Add -fexception for mkl_eager_op_rewrite.
Browse files Browse the repository at this point in the history
  • Loading branch information
liutongxuan committed Mar 17, 2023
1 parent 3656f7f commit 99d7734
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorflow/core/common_runtime/eager/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ cc_library(
cc_library(
name = "mkl_eager_op_rewrite",
srcs = ["mkl_eager_op_rewrite.cc"],
copts = tf_copts(),
copts = tf_copts() + ["-fexceptions"],
deps = [
":eager_op_rewrite_registry",
"//tensorflow/core:all_kernels",
Expand All @@ -287,6 +287,7 @@ cc_library(
"//tensorflow/core:lib",
"//tensorflow/core:mkl_graph_util",
],
alwayslink = 1,
)

cc_library(
Expand Down

0 comments on commit 99d7734

Please sign in to comment.