Skip to content

Commit 52c50a7

Browse files
committed
Fix DifferentiationUnittest.
- Remove deprecated `TARGET_SDKS ALL_POSIX_PLATFORMS`. - Specify DARWIN_INSTALL_NAME_DIR.
1 parent 8a93624 commit 52c50a7

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
add_swift_target_library(swiftDifferentiationUnittest ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
2-
GenericLifetimeTracked.swift
2+
# This file should be listed first. Module name is inferred from the filename.
3+
DifferentiationUnittest.swift
4+
35
SWIFT_COMPILE_FLAGS
4-
TARGET_SDKS ALL_POSIX_PLATFORMS
5-
INSTALL_IN_COMPONENT stdlib-experimental)
6+
INSTALL_IN_COMPONENT stdlib-experimental
7+
DARWIN_INSTALL_NAME_DIR "${SWIFT_DARWIN_STDLIB_PRIVATE_INSTALL_NAME_DIR}")
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
find_package(TensorFlow REQUIRED)
22

33
add_swift_target_library(swiftTensorFlowUnittest ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
4+
# This file should be listed first. Module name is inferred from the filename.
45
TensorFlowUnittest.swift
56
TensorFlowUnittestRemote.swift
67

78
SWIFT_MODULE_DEPENDS Python StdlibUnittest TensorFlow
89
SWIFT_MODULE_DEPENDS_OSX Darwin
910
SWIFT_MODULE_DEPENDS_LINUX Glibc
1011
PRIVATE_LINK_LIBRARIES "${TF_LIBRARIES}"
11-
INSTALL_IN_COMPONENT stdlib-experimental)
12+
INSTALL_IN_COMPONENT stdlib-experimental
13+
DARWIN_INSTALL_NAME_DIR "${SWIFT_DARWIN_STDLIB_PRIVATE_INSTALL_NAME_DIR}")

0 commit comments

Comments
 (0)