From 0ac3461c7d6693b2c423d1b2236464687eb065bb Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 18 Jul 2023 19:06:21 +0500 Subject: [PATCH] Fix #22281 (#22289) Respect `--gcc.exe` and similar options when `--genScript:on` is used. (cherry picked from commit 14a9929464b9f658155ed429397216736fccc259) --- compiler/extccomp.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index ecb2197b95..01dadd34dd 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -565,7 +565,7 @@ proc getCompileCFileCmd*(conf: ConfigRef; cfile: Cfile, compilePattern = joinPath(conf.cCompilerPath, exe) else: - compilePattern = getCompilerExe(conf, c, isCpp) + compilePattern = exe includeCmd.add(join([CC[c].includeCmd, quoteShell(conf.projectPath.string)]))