// Every platform should define this, even if is it just '() {}'.
#export "_start" platform.__start
-//
-// Export a common initialization procedure that should
-// always be invoked before using anything in Onyx.
-#export "_initialize" () {
- __runtime_initialize();
- context.thread_id = 0;
+#if runtime != .Wasi {
+ //
+ // Export a common initialization procedure that should
+ // always be invoked before using anything in Onyx.
+ #export "_initialize" () {
+ __runtime_initialize();
+ context.thread_id = 0;
+ }
}
#local