Commit Graph

5 Commits

Author SHA1 Message Date
Karoy Lorentey
c195b2e724 [utils] split-cmdline: Handle -working-directory 2021-02-10 13:11:05 -08:00
Karoy Lorentey
33049fab81 [utils] split-cmdline: Handle typical compiler invocations better
Add a general heuristic that options ending in -path expect an argument.

Remove such options from the explicit is_arg_param list and sort it to simplify maintenance.

Recognize -target-sdk-version.
2021-02-10 13:01:51 -08:00
Ross Bayer
29a7edded6 [Python] Update the .flake8 config file to lint all existing Python scripts.
The utils/dev-scripts/at-to-filelist, utils/dev-scripts/split-cmdline and utils/build-parser-lib scripts needed to be reformatted with the black tool to agree with the linter.
2020-02-06 15:39:25 -08:00
Erik Eckstein
4262a12dc8 split-cmdline: Correctly handle spaces in arguments.
Also add an example in the script header.
2017-11-13 12:47:30 -08:00
Erik Eckstein
47e5a0757a A utility script to split long swift compiler command lines.
For details see the comment in split-cmdline

I put this under a new directory utils/dev-script because we have so much stuff in utils already.
Other, similar scripts can then be added in dev-scripts as well.
2017-10-29 15:27:32 -07:00