You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-libs/gobject-introspection/files/gobject-introspection-1.36....

28 lines
1.1 KiB

From 863ceb7f5a5b5f6accfea23dcd47b5c74a53f68b Mon Sep 17 00:00:00 2001
From: Emmanuele Bassi <ebassi@gnome.org>
Date: Thu, 02 May 2013 01:49:01 +0000
Subject: 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
---
diff --git a/giscanner/dumper.py b/giscanner/dumper.py
index f5346a4..1ef1f4b 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']
--
cgit v0.9.2