Skip to content

Commit 99d7734

Browse files
committed
[BUILD] Add -fexception for mkl_eager_op_rewrite.
1 parent 3656f7f commit 99d7734

File tree

1 file changed

+2
-1
lines changed
  • tensorflow/core/common_runtime/eager

1 file changed

+2
-1
lines changed

tensorflow/core/common_runtime/eager/BUILD

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ cc_library(
278278
cc_library(
279279
name = "mkl_eager_op_rewrite",
280280
srcs = ["mkl_eager_op_rewrite.cc"],
281-
copts = tf_copts(),
281+
copts = tf_copts() + ["-fexceptions"],
282282
deps = [
283283
":eager_op_rewrite_registry",
284284
"//tensorflow/core:all_kernels",
@@ -287,6 +287,7 @@ cc_library(
287287
"//tensorflow/core:lib",
288288
"//tensorflow/core:mkl_graph_util",
289289
],
290+
alwayslink = 1,
290291
)
291292

292293
cc_library(

0 commit comments

Comments
 (0)