From 9d299ccc5230a25b39f9a7ca766aeb045fbbe9a4 Mon Sep 17 00:00:00 2001 From: Isaac Paul Date: Tue, 19 May 2026 17:03:08 -0500 Subject: [PATCH] Fix args undefined in release builds on Linux In release (#else) branch, args was never defined but used on line 337. Move args declaration outside the #if DEBUG block; only append -r flag in DEBUG. Automated-By: claude-sonnet-4-6 --- Sources/BindingGenerator/CLI.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Sources/BindingGenerator/CLI.swift b/Sources/BindingGenerator/CLI.swift index 3aaf79d..b7d00c5 100644 --- a/Sources/BindingGenerator/CLI.swift +++ b/Sources/BindingGenerator/CLI.swift @@ -327,13 +327,12 @@ struct CLI { #endif let cmdLinArgs = CommandLine.arguments.dropFirst() - + + var args: [String] = Array(cmdLinArgs) #if DEBUG - var args:[String] = Array(cmdLinArgs) args.append(contentsOf: ["-r"]) - #else #endif - + await Process.main(args) } else { print("This only works on mac 13 and newer.")