Skip to content

Commit a60f5c4

Browse files
committed
Fix dev-scripts/split-cmdline: quote ';' arguments
When printing an argument that contains ';', add back the quotes that are normally stripped. I regularly waste half a day building Swift only to find that I built the wrong thing because everything after the semicolon is dropped from the build script when it contains arguments like this: '--llvm-install-components=libclang;libclang-headers' Ideally, split-cmdline would just preserve the original quotes. But this quick fix solves the problem in the cases that I care about.
1 parent c936202 commit a60f5c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/dev-scripts/split-cmdline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def main():
6969
first = True
7070
continue
7171

72-
if " " in arg:
72+
if " " in arg or ";" in arg:
7373
print('"' + arg + '"', end="")
7474
else:
7575
print(arg, end="")

0 commit comments

Comments
 (0)