GP-7172: Pass -- to native swift demangler to indicate end of flags

This commit is contained in:
Ryan Kurtz
2026-08-28 06:44:28 -04:00
parent 594da04843
commit 2a6e9bacea

View File

@@ -144,6 +144,7 @@ public class SwiftNativeDemangler {
command.add("demangle");
}
command.addAll(options);
command.add("--"); // indicate end of flags
command.add(mangled);
Process p = new ProcessBuilder(command).redirectErrorStream(true).start();
return new BufferedReader(new InputStreamReader(p.getInputStream()));