We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec48e41 + 8e16bc0 commit 57b56a0Copy full SHA for 57b56a0
stdlib/public/runtime/SwiftRT-ELF-WASM.cpp
@@ -13,6 +13,7 @@
13
#include "ImageInspectionCommon.h"
14
#include "swift/shims/MetadataSections.h"
15
#include "swift/Runtime/Backtrace.h"
16
+#include "swift/Runtime/Config.h"
17
18
#include <cstddef>
19
#include <new>
@@ -84,6 +85,7 @@ namespace {
84
85
static swift::MetadataSections sections{};
86
}
87
88
+SWIFT_ALLOWED_RUNTIME_GLOBAL_CTOR_BEGIN
89
__attribute__((__constructor__))
90
static void swift_image_constructor() {
91
#define SWIFT_SECTION_RANGE(name) \
@@ -119,3 +121,4 @@ static void swift_image_constructor() {
119
121
120
122
swift_addNewDSOImage(§ions);
123
124
+SWIFT_ALLOWED_RUNTIME_GLOBAL_CTOR_END
0 commit comments