File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
stdlib/public/Observation/Sources/Observation Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 12
12
13
13
set (SWIFT_OBSERVATION_SWIFT_FLAGS )
14
14
15
+ set (SWIFT_HOST_LIBRARIES_SUBDIRECTORY "swift/host" )
16
+
15
17
list (APPEND SWIFT_OBSERVATION_SWIFT_FLAGS
16
- "-enable-experimental-feature Macros" )
18
+ "-enable-experimental-feature" "Macros"
19
+ "-load-plugin-library"
20
+ ${CMAKE_BINARY_DIR} /lib/${SWIFT_HOST_LIBRARIES_SUBDIRECTORY} )
17
21
18
22
add_swift_target_library (swiftObservation ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
19
23
KeyPaths.swift
@@ -31,7 +35,7 @@ add_swift_target_library(swiftObservation ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS
31
35
SWIFT_COMPILE_FLAGS
32
36
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
33
37
${SWIFT_OBSERVATION_SWIFT_FLAGS}
34
- SWIFT_MODULE_DEPENDS _Concurrency
38
+ SWIFT_MODULE_DEPENDS _Concurrency ObservationMacros
35
39
INSTALL_IN_COMPONENT stdlib
36
40
37
41
MACCATALYST_BUILD_FLAVOR "zippered"
Original file line number Diff line number Diff line change 9
9
//
10
10
//===----------------------------------------------------------------------===//
11
11
12
+ #if compiler(>=5.8) && hasAttribute(attached)
12
13
@available ( SwiftStdlib 5 . 9 , * )
13
14
@attached ( member)
14
15
@attached ( memberAttribute)
15
16
public macro Observable( ) = #externalMacro( module: " ObservationMacros " , type: " ObservableMacro " )
16
17
17
18
@available ( SwiftStdlib 5 . 9 , * )
18
19
@attached ( accessor)
19
- public macro ObservableProperty( ) = #externalMacro( module: " ObservationMacros " , type: " ObservablePropertyMacro " )
20
+ public macro ObservableProperty( ) = #externalMacro( module: " ObservationMacros " , type: " ObservablePropertyMacro " )
21
+ #endif
Original file line number Diff line number Diff line change 14
14
#include " swift/Runtime/Once.h"
15
15
#include " swift/Threading/ThreadLocalStorage.h"
16
16
17
- static SWIFT_THREAD_LOCAL_TYPE (void *, tls_key::observation_transaction) Value;
17
+ static SWIFT_THREAD_LOCAL_TYPE (void *, swift:: tls_key::observation_transaction) Value;
18
18
19
19
extern " C" SWIFT_CC(swift)
20
20
void *_swift_observation_tls_get () {
You can’t perform that action at this time.
0 commit comments