Skip to content

Commit 0eb0e42

Browse files
Merge pull request #82975 from ian-twilightcoder/split-cmdline
[utils] Add more flags to split-cmdline
2 parents 302fa00 + 2251dc7 commit 0eb0e42

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

utils/dev-scripts/split-cmdline

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def main():
5353
continue
5454
if not first:
5555
# Print option arguments in the same line
56+
is_arg_param = is_arg_param or not arg.startswith("-")
5657
print(" " if is_arg_param else " \\\n ", end="")
5758
first = False
5859

@@ -329,17 +330,27 @@ def main():
329330
"-arch",
330331
"-emit-ir",
331332
"-emit-sil",
333+
"-ferror-limit",
332334
"-fileno",
335+
"-fmodule-feature",
333336
"-import-objc-header",
337+
"-internal-externc-isystem",
334338
"-macosx_version_min",
339+
"-pic-level",
335340
"-resource-dir",
336341
"-rpath",
342+
"-stack-protector",
343+
"-stack-protector-buffer-size",
337344
"-syslibroot",
345+
"-target-abi",
346+
"-target-feature",
347+
"-target-linker-version",
338348
"-target-sdk-version",
339349
"-target-sdk-name",
350+
"-triple",
340351
]
341352
# Heuristic: options ending in -path expect an argument
342-
if arg.startswith("-") and arg.endswith("-path"):
353+
if arg != "-finclude-tree-preserve-pch-path" and arg.startswith("-") and arg.endswith("-path"):
343354
is_arg_param = True
344355
if arg == "-c" and args[0] == "swift":
345356
is_arg_param = True

0 commit comments

Comments
 (0)