summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-05-01 18:49:01 -0700
committerEmmanuele Bassi <ebassi@gnome.org>2013-05-01 18:49:01 -0700
commit863ceb7f5a5b5f6accfea23dcd47b5c74a53f68b (patch)
tree94167aee3055aa90cfb06dee0004a72a021d07bf
parent61014888425590acc66e1f84fe22480d940c9ab8 (diff)
downloadgobject-introspection-863ceb7f5a5b5f6accfea23dcd47b5c74a53f68b.tar.gz
Do not misdetect clang as the Microsoft C compiler
Just because they both start with 'cl'. https://bugzilla.gnome.org/show_bug.cgi?id=698090
-rw-r--r--giscanner/dumper.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index f5346a40..1ef1f4bf 100644
--- a/giscanner/dumper.py
+++ b/giscanner/dumper.py
@@ -89,8 +89,9 @@ class DumpCompiler(object):
# Enable the --msvc-syntax pkg-config flag when
# the Microsoft compiler is used
# (This is the other way to check whether Visual C++ is used subsequently)
- if 'cl' in self._compiler_cmd:
- self._pkgconfig_msvc_flags = '--msvc-syntax'
+ if 'clang' not in self._compiler_cmd:
+ if 'cl' in self._compiler_cmd:
+ self._pkgconfig_msvc_flags = '--msvc-syntax'
self._uninst_srcdir = os.environ.get(
'UNINSTALLED_INTROSPECTION_SRCDIR')
self._packages = ['gio-2.0 gmodule-2.0']