diff options
Diffstat (limited to 'giscanner/ccompiler.py')
-rw-r--r-- | giscanner/ccompiler.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py index 11bc9fc4..7c1895da 100644 --- a/giscanner/ccompiler.py +++ b/giscanner/ccompiler.py @@ -19,6 +19,7 @@ # import os +import shlex import subprocess import tempfile @@ -213,7 +214,7 @@ class CCompiler(object): # This is to handle the case where macros are defined in CFLAGS cflags = os.environ.get('CFLAGS') if cflags: - for i, cflag in enumerate(cflags.split()): + for i, cflag in enumerate(shlex.split(cflags)): if cflag.startswith('-D'): stridx = cflag.find('=') if stridx > -1: |