diff options
author | Colin Walters <walters@verbum.org> | 2009-02-25 12:25:28 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2009-02-25 12:25:28 -0500 |
commit | acf7c084c5e13de262d866b896e9b30a0739eecf (patch) | |
tree | 80c83ad58ec0e93732a022b3c5d5471e5f06be6e /giscanner | |
parent | f3f8de20114405bae29a354d67c38a7bf0b096a2 (diff) | |
download | gobject-introspection-acf7c084c5e13de262d866b896e9b30a0739eecf.tar.gz |
Handle multiple arguments for $CC
This makes the dumper not fail for people who set $CC to e.g. "distcc gcc".
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/dumper.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py index 95a66ab9..c8f99277 100644 --- a/giscanner/dumper.py +++ b/giscanner/dumper.py @@ -165,7 +165,8 @@ class DumpCompiler(object): return ['libtool'] def _compile(self, output, *sources): - args = [self._compiler_cmd] + # Not strictly speaking correct, but easier than parsing shell + args = self._compiler_cmd.split() if self._compiler_cmd == 'gcc': args.append('-Wall') pkgconfig_flags = self._run_pkgconfig('--cflags') |