File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -1711,7 +1711,7 @@ if(SWIFT_ENABLE_NEW_RUNTIME_BUILD)
1711
1711
# To ensure incremental builds work as expected
1712
1712
BUILD_ALWAYS 1
1713
1713
CMAKE_ARGS
1714
- -DSwift_ENABLE_RUNTIMES=StringProcessing|Synchronization|Distributed
1714
+ -DSwift_ENABLE_RUNTIMES=StringProcessing|Synchronization|Distributed|Observation
1715
1715
-DBUILD_SHARED_LIBS=YES
1716
1716
-DCMAKE_Swift_COMPILER_WORKS:BOOLEAN=YES
1717
1717
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
Original file line number Diff line number Diff line change @@ -92,3 +92,14 @@ if(SwiftRuntime_ENABLE_differentiation)
92
92
CMAKE_ARGS
93
93
${COMMON_OPTIONS} )
94
94
endif ()
95
+
96
+ # Observation
97
+ if (SwiftRuntime_ENABLE_observation )
98
+ ExternalProject_Add (Observation
99
+ PREFIX "Observation"
100
+ SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /Observation"
101
+ INSTALL_DIR "${CMAKE_INSTALL_PREFIX} "
102
+ INSTALL_COMMAND ""
103
+ CMAKE_ARGS
104
+ ${COMMON_OPTIONS} )
105
+ endif ()
Original file line number Diff line number Diff line change @@ -97,8 +97,12 @@ set_target_properties(swiftObservation PROPERTIES
97
97
# FIXME: We should split out the parts that are needed by the runtime to avoid
98
98
# pulling in headers from the compiler.
99
99
target_include_directories (swiftObservation PRIVATE
100
- "${${PROJECT_NAME} _SWIFTC_SOURCE_DIR}/include" )
100
+ "${${PROJECT_NAME} _SWIFTC_SOURCE_DIR}/include"
101
+ # For `swift/runtime/CMakeConfig.h`, which should be generated
102
+ # by the Core build system.
103
+ "${${PROJECT_NAME} _PATH_TO_SWIFT_RUNTIME_HEADERS}" )
101
104
target_link_libraries (swiftObservation PRIVATE
105
+ swiftShims
102
106
swiftCore
103
107
swift_Concurrency
104
108
$< $< PLATFORM_ID:Android> :swiftAndroid>
You can’t perform that action at this time.
0 commit comments