Skip to content

Commit ba4f0b4

Browse files
authored
Build TensorFlowUnittest only if we are also building tensorflow-swift-apis. (#25189)
1 parent a44d3e3 commit ba4f0b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/private/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ if(SWIFT_BUILD_SDK_OVERLAY)
2020
add_subdirectory(OSLog)
2121

2222
# SWIFT_ENABLE_TENSORFLOW
23-
if(SWIFT_ENABLE_TENSORFLOW)
23+
# Only build unittest if we are also building swift apis.
24+
if(SWIFT_ENABLE_TENSORFLOW AND TENSORFLOW_SWIFT_APIS)
2425
add_subdirectory(TensorFlowUnittest)
2526
endif()
2627

0 commit comments

Comments
 (0)