fixes #23065; DocLike command defaults to ORC (#23075)

fixes #23065
This commit is contained in:
ringabout
2023-12-15 00:04:09 +08:00
committed by GitHub
parent 6ed33b6d61
commit 7e4060cb4a

View File

@@ -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)