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
This commit is contained in:
@@ -328,10 +328,9 @@ struct CLI {
|
||||
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user