Skip to content

Commit 456ecaf

Browse files
authored
Merge pull request swiftlang#29299 from compnerd/status
build: always report the status of building `_Differentiation`
2 parents a4fcc48 + f2b6446 commit 456ecaf

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,9 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
877877
message(STATUS "Building Swift runtime with:")
878878
message(STATUS " Leak Detection Checker Entrypoints: ${SWIFT_RUNTIME_ENABLE_LEAK_CHECKER}")
879879
message(STATUS "")
880+
881+
message(STATUS "Differentiable Programming Support: ${SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING}")
882+
message(STATUS "")
880883
else()
881884
message(STATUS "Not building Swift standard library, SDK overlays, and runtime")
882885
message(STATUS "")

stdlib/public/CMakeLists.txt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,10 @@ if(SWIFT_BUILD_STDLIB)
6161
add_subdirectory(stubs)
6262
add_subdirectory(core)
6363
add_subdirectory(SwiftOnoneSupport)
64-
endif()
6564

66-
# Build differentiable programming support library only if enabled.
67-
if(SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING AND SWIFT_BUILD_STDLIB)
68-
message(STATUS "Building Swift differentiable programming support library.")
69-
add_subdirectory(Differentiation)
65+
if(SWIFT_ENABLE_EXPERIMENTAL_DIFFERENTIABLE_PROGRAMMING)
66+
add_subdirectory(Differentiation)
67+
endif()
7068
endif()
7169

7270
if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_REMOTE_MIRROR)

0 commit comments

Comments
 (0)