aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/python/PythonUtils.java
diff options
context:
space:
mode:
authorGravatar tomlu <tomlu@google.com>2017-08-23 17:23:32 +0200
committerGravatar Damien Martin-Guillerez <dmarting@google.com>2017-08-24 13:54:00 +0200
commita21bb62b5558a1e8a355ca7e4b7b7aa712c957f4 (patch)
treeaea6c06789033a20aed4e1423592b2e61d18ab59 /src/main/java/com/google/devtools/build/lib/rules/python/PythonUtils.java
parent8eafe6b57f2838fb911d9f8986309b7dccd93616 (diff)
Use CustomCommandLine directly instead of via SpawnAction.Builder.
This change forces use of CustomCommandLine.Builder, which has a richer interface for constructing memory-efficient command lines. It will also permit surveying the code base for inefficient patterns using an IDE. This change was done by hand and split using Rosie to assist with rollbacks in case of bugs. Reviewers, please pay particular attention to: * Each all to addInputArgument/addOutputArgument should come with a corresponding matching pair to SpawnAction.Builder#addInput and CustomCommandLine.Builder#addExecPath (eg.). * The commandLine must be set on the SpawnAction using SpawnAction.Builder#setCommandLine. Note that most calls to addPrefixed("arg=", val) should be more idiomatically expressed as add("arg", val), but this involves changing tests and making sure that the command line tools can accept the format. PiperOrigin-RevId: 166203659
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PythonUtils.java')
0 files changed, 0 insertions, 0 deletions