File tree Expand file tree Collapse file tree 3 files changed +9
-18
lines changed Expand file tree Collapse file tree 3 files changed +9
-18
lines changed Original file line number Diff line number Diff line change @@ -72,16 +72,16 @@ endif()
72
72
# SWIFT_ENABLE_TENSORFLOW
73
73
if (SWIFT_BUILD_STDLIB )
74
74
add_subdirectory (Python )
75
- endif ()
76
75
77
- # SWIFT_ENABLE_TENSORFLOW
78
- # Note: Python should be built before TensorFlow because Python is a
79
- # dependency for `numpy.ndarray` bridging to `ShapedArray`/`Tensor`.
80
- if ( SWIFT_BUILD_STDLIB AND SWIFT_ENABLE_TENSORFLOW )
81
- # TODO: Add TensorFlow support for iOS/Raspberry Pi.
82
- add_subdirectory (CTensorFlow )
83
- add_subdirectory ( TensorFlow )
76
+ # Note: Python should be built before TensorFlow because Python is a
77
+ # dependency for `numpy.ndarray` bridging to `ShapedArray`/`Tensor`.
78
+ if ( SWIFT_ENABLE_TENSORFLOW )
79
+ # TODO: Add TensorFlow support for iOS/Raspberry Pi.
80
+ add_subdirectory ( CTensorFlow )
81
+ add_subdirectory (TensorFlow )
82
+ endif ( )
84
83
endif ()
84
+ # SWIFT_ENABLE_TENSORFLOW END
85
85
86
86
if (SWIFT_BUILD_STDLIB OR SWIFT_BUILD_REMOTE_MIRROR )
87
87
add_subdirectory (Reflection )
Original file line number Diff line number Diff line change 14
14
#
15
15
#===----------------------------------------------------------------------===#
16
16
17
- set (SWIFT_PYTHON_EXISTS TRUE PARENT_SCOPE )
18
-
19
17
set (SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES )
20
18
if (SWIFT_BUILD_DYNAMIC_SDK_OVERLAY )
21
19
list (APPEND SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES SHARED )
Original file line number Diff line number Diff line change @@ -45,13 +45,6 @@ if (TENSORFLOW_SWIFT_APIS)
45
45
endforeach ()
46
46
endif ()
47
47
48
- # When Python exists, PythonConversion.swift imports it, so it must be
49
- # available at link time.
50
- set (TENSORFLOW_DEPENDS_PYTHON )
51
- if (SWIFT_PYTHON_EXISTS )
52
- list (APPEND TENSORFLOW_DEPENDS_PYTHON SWIFT_MODULE_DEPENDS Python )
53
- endif ()
54
-
55
48
add_swift_target_library (swiftTensorFlow ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
56
49
"${SOURCES} "
57
50
@@ -67,7 +60,7 @@ add_swift_target_library(swiftTensorFlow ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_
67
60
SWIFT_MODULE_DEPENDS_CYGWIN Glibc
68
61
SWIFT_MODULE_DEPENDS_HAIKU Glibc
69
62
SWIFT_MODULE_DEPENDS_WINDOWS MSVCRT
70
- ${TENSORFLOW_DEPENDS_PYTHON}
63
+ SWIFT_MODULE_DEPENDS Python
71
64
SWIFT_COMPILE_FLAGS "${swift_stdlib_compile_flags} "
72
65
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS} "
73
66
INSTALL_IN_COMPONENT stdlib
You can’t perform that action at this time.
0 commit comments