Skip to content

Commit

Permalink
Dev: disable exit-time-destructors warnings for crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
andriydruk committed Nov 25, 2024
1 parent 54fd01e commit 447fdb5
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@ index ddfcd7e3e54..fac2247c5e9 100644

if (SWIFTLIB_BACK_DEPLOYMENT_LIBRARY)
diff --git a/stdlib/public/runtime/Errors.cpp b/stdlib/public/runtime/Errors.cpp
index 26e3a01998c..a2534ffed6f 100644
index 26e3a01998c..a53a3251c48 100644
--- a/stdlib/public/runtime/Errors.cpp
+++ b/stdlib/public/runtime/Errors.cpp
@@ -55,6 +55,7 @@
@@ -55,6 +55,10 @@
#include <asl.h>
#elif defined(__ANDROID__)
#include <android/log.h>
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wexit-time-destructors"
+#include "crashlytics.h"
+#pragma clang diagnostic pop
#endif

#if defined(__ELF__)
@@ -315,6 +316,8 @@ reportOnCrash(uint32_t flags, const char *message)
@@ -315,6 +319,8 @@ reportOnCrash(uint32_t flags, const char *message)
&oldMessage, newMessage,
std::memory_order_release,
SWIFT_MEMORY_ORDER_CONSUME));
Expand Down

0 comments on commit 447fdb5

Please sign in to comment.