File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 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)
2525
2626add_library (firebase INTERFACE )
2727target_compile_options (firebase INTERFACE
28- "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xcc -DSR69711>"
28+ "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xcc -DSR69711 -Xcc -DSR74578 >"
2929 "SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xcc -DINTERNAL_EXPERIMENTAL>" )
3030target_include_directories (firebase INTERFACE
3131 Sources /firebase/include
Original file line number Diff line number Diff line change @@ -35,6 +35,21 @@ class SWIFT_CONFORMS_TO_PROTOCOL(FirebaseCore.FutureProtocol)
3535 completion (user_data);
3636 });
3737 }
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
3853};
3954
4055// 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