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)
17111711 # To ensure incremental builds work as expected
17121712 BUILD_ALWAYS 1
17131713 CMAKE_ARGS
1714- -DSwift_ENABLE_RUNTIMES=StringProcessing|Synchronization|Distributed
1714+ -DSwift_ENABLE_RUNTIMES=StringProcessing|Synchronization|Distributed|Observation
17151715 -DBUILD_SHARED_LIBS=YES
17161716 -DCMAKE_Swift_COMPILER_WORKS:BOOLEAN=YES
17171717 -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)
9292 CMAKE_ARGS
9393 ${COMMON_OPTIONS} )
9494endif ()
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
9797# FIXME: We should split out the parts that are needed by the runtime to avoid
9898# pulling in headers from the compiler.
9999target_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}" )
101104target_link_libraries (swiftObservation PRIVATE
105+ swiftShims
102106 swiftCore
103107 swift_Concurrency
104108 $<$<PLATFORM_ID:Android>:swiftAndroid>
You can’t perform that action at this time.
0 commit comments