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()
|
let cmdLinArgs = CommandLine.arguments.dropFirst()
|
||||||
|
|
||||||
#if DEBUG
|
|
||||||
var args: [String] = Array(cmdLinArgs)
|
var args: [String] = Array(cmdLinArgs)
|
||||||
|
#if DEBUG
|
||||||
args.append(contentsOf: ["-r"])
|
args.append(contentsOf: ["-r"])
|
||||||
#else
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
await Process.main(args)
|
await Process.main(args)
|
||||||
|
|||||||
Reference in New Issue
Block a user