From: stagas Date: Fri, 8 Dec 2023 19:07:27 +0000 (+0200) Subject: fixed: js default runtime settings for multithreading X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=289abc26f248c190857cf11f387673eb7e654788;p=onyx.git fixed: js default runtime settings for multithreading --- diff --git a/core/builtin.onyx b/core/builtin.onyx index 0a18e339..425ddda5 100644 --- a/core/builtin.onyx +++ b/core/builtin.onyx @@ -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";