Skip to content

Commit 6fdf3e9

Browse files
Make tsl_cc_test default to linkstatic to catch duplicate symbols at build time.
PiperOrigin-RevId: 726616180
1 parent de33d45 commit 6fdf3e9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tsl/platform/BUILD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -764,6 +764,7 @@ tsl_cc_test(
764764
srcs = [
765765
"stacktrace_handler_test.cc",
766766
],
767+
linkstatic = False, # In the OSS build, static linking affects the stacktrace.
767768
tags = ["no_windows"],
768769
deps = [
769770
":stacktrace",
@@ -998,6 +999,7 @@ tsl_cc_test(
998999
srcs = [
9991000
"stacktrace_test.cc",
10001001
],
1002+
linkstatic = False, # In the OSS build, static linking affects the stacktrace.
10011003
tags = ["no_windows"],
10021004
deps = [
10031005
":stacktrace",

0 commit comments

Comments
 (0)