File tree 2 files changed +16
-1
lines changed 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ include_directories(SYSTEM ${_SWIFT_INCLUDE_DIR}/include)
25
25
26
26
add_library (firebase INTERFACE )
27
27
target_compile_options (firebase INTERFACE
28
- "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xcc -DSR69711>"
28
+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xcc -DSR69711 -Xcc -DSR74578 >"
29
29
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xcc -DINTERNAL_EXPERIMENTAL>" )
30
30
target_include_directories (firebase INTERFACE
31
31
Sources /firebase/include
Original file line number Diff line number Diff line change @@ -35,6 +35,21 @@ class SWIFT_CONFORMS_TO_PROTOCOL(FirebaseCore.FutureProtocol)
35
35
completion (user_data);
36
36
});
37
37
}
38
+
39
+ // FIXME: Remove once https://github.com/apple/swift/issues/74578 is fixed.
40
+ #if defined(SR74578)
41
+ int error () const {
42
+ return ::firebase::Future<R>::error ();
43
+ }
44
+
45
+ const R *result () const {
46
+ return ::firebase::Future<R>::result ();
47
+ }
48
+
49
+ const char *error_message () const {
50
+ return ::firebase::Future<R>::error_message ();
51
+ }
52
+ #endif
38
53
};
39
54
40
55
// As a workaround, use `int` here instead of `void` for futures with no
You can’t perform that action at this time.
0 commit comments