From 7e4060cb4a473617bc8ed6e289586bf793aed5b1 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Fri, 15 Dec 2023 00:04:09 +0800 Subject: [PATCH] fixes #23065; DocLike command defaults to ORC (#23075) fixes #23065 --- compiler/nim.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/nim.nim b/compiler/nim.nim index 184303f8ea..3473ea443c 100644 --- a/compiler/nim.nim +++ b/compiler/nim.nim @@ -117,7 +117,8 @@ proc handleCmdLine(cache: IdentCache; conf: ConfigRef) = if conf.selectedGC == gcUnselected: if conf.backend in {backendC, backendCpp, backendObjc, backendNir} or - (conf.cmd == cmdInteractive and isDefined(conf, "nir")): + (conf.cmd == cmdInteractive and isDefined(conf, "nir")) or + (conf.cmd in cmdDocLike and conf.backend != backendJs): initOrcDefines(conf) mainCommand(graph)