diff options
author | 2016-07-25 23:51:01 +0200 | |
---|---|---|
committer | 2016-07-25 23:51:01 +0200 | |
commit | bc0b08892f2739f999529850e6fdd9600740b31d (patch) | |
tree | b95465037d20aaeec584abaa9b116e8f575861c5 /src/python/grpcio/_unixccompiler_patch.py | |
parent | c32640737965fdfe0f44c284b0d357c9bd53ca94 (diff) | |
parent | 01da196879cb69b3c56b3bdcff6f0194ab5a190d (diff) |
Merge branch 'master' of https://github.com/grpc/grpc into interop_server_split
Conflicts:
Makefile
Diffstat (limited to 'src/python/grpcio/_unixccompiler_patch.py')
-rw-r--r-- | src/python/grpcio/_unixccompiler_patch.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/python/grpcio/_unixccompiler_patch.py b/src/python/grpcio/_unixccompiler_patch.py index 0ce5d63e98..894c3ef395 100644 --- a/src/python/grpcio/_unixccompiler_patch.py +++ b/src/python/grpcio/_unixccompiler_patch.py @@ -34,6 +34,7 @@ from distutils import errors from distutils import unixccompiler import os import os.path +import shlex import shutil import sys import tempfile @@ -47,6 +48,9 @@ def _unix_commandfile_spawn(self, command): Some commands like `gcc` (and friends like `clang`) support command files to work around shell command length limits. """ + # Sometimes distutils embeds the executables as full strings including some + # hard-coded flags rather than as lists. + command = list(shlex.split(command[0])) + list(command[1:]) command_base = os.path.basename(command[0].strip()) if command_base == 'ccache': command_base = command[:2] |