fixed: js default runtime settings for multithreading
authorstagas <gstagas@gmail.com>
Fri, 8 Dec 2023 19:07:27 +0000 (21:07 +0200)
committerstagas <gstagas@gmail.com>
Fri, 8 Dec 2023 19:07:27 +0000 (21:07 +0200)
core/builtin.onyx

index 0a18e33992e3db95833ed306a9e9a56880d3a5c6..425ddda54c320e1f1c824c3876131ffaf1c8ea1f 100644 (file)
@@ -542,7 +542,7 @@ Link_Options :: struct {
 
 // Define settings for the link options depending on the runtime.
 #local {
-    #if runtime.runtime == .Onyx {
+    #if runtime.runtime == .Onyx || (runtime.runtime == .Js && runtime.Multi_Threading_Enabled) {
         IMPORT_MEMORY_DEFAULT :: true;
         IMPORT_MEMORY_MODULE_NAME_DEFAULT :: "onyx";
         IMPORT_MEMORY_IMPORT_NAME_DEFAULT :: "memory";