Skip to content

Commit 26fcc23

Browse files
committed
stdlib: remove unnecessary checks
The subdirectory is never entered unless the condition holds, remove the unnecessary check and return path for the TensorFlow modules.
1 parent bf631dc commit 26fcc23

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

stdlib/public/CTensorFlow/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
#
1515
#===----------------------------------------------------------------------===#
1616

17-
if(NOT SWIFT_ENABLE_TENSORFLOW)
18-
return()
19-
endif()
20-
2117
include("../../../cmake/modules/SwiftList.cmake")
2218

2319
find_package(TensorFlow REQUIRED)

stdlib/public/TensorFlow/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
#
1515
#===----------------------------------------------------------------------===#
1616

17-
if(NOT SWIFT_ENABLE_TENSORFLOW)
18-
return()
19-
endif()
20-
2117
find_package(TensorFlow REQUIRED)
2218
message(STATUS "Building TensorFlow.")
2319

0 commit comments

Comments
 (0)