Skip to content

Commit bf68456

Browse files
committed
Try OSX fix
1 parent b0cb2fc commit bf68456

File tree

1 file changed

+8
-4
lines changed
  • src/coreclr/src/nativeaot/Bootstrap

1 file changed

+8
-4
lines changed

src/coreclr/src/nativeaot/Bootstrap/main.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,18 @@ int main(int argc, char* argv[])
192192
#endif // !CORERT_DLL
193193

194194
#ifdef CORERT_DLL
195-
struct InitializeRuntimePointerHelper
195+
static struct InitializeRuntimePointerHelper
196196
{
197197
InitializeRuntimePointerHelper()
198198
{
199199
RhSetRuntimeInitializationCallback(&InitializeRuntime);
200200
}
201-
};
201+
} initializeRuntimePointerHelper;
202+
203+
extern "C" void* CoreRT_StaticInitialization();
202204

203-
extern "C" InitializeRuntimePointerHelper CoreRT_StaticInitialization;
204-
InitializeRuntimePointerHelper CoreRT_StaticInitialization;
205+
void* CoreRT_StaticInitialization()
206+
{
207+
return &initializeRuntimePointerHelper;
208+
}
205209
#endif // CORERT_DLL

0 commit comments

Comments
 (0)