summaryrefslogtreecommitdiff
path: root/giscanner/ccompiler.py
diff options
context:
space:
mode:
authorNicola Fontana <ntd@entidi.it>2015-03-23 15:57:14 +0100
committerColin Walters <walters@verbum.org>2016-02-16 16:20:57 -0500
commit72b6df60f2d6bcd3628f57c794430f1eec4a04aa (patch)
tree4160a81ee73817218e16e88edb7b2b665abfd79b /giscanner/ccompiler.py
parenta62b3020573f9f2a4871c0f74212c8429bc2015e (diff)
downloadgobject-introspection-72b6df60f2d6bcd3628f57c794430f1eec4a04aa.tar.gz
Allow overriding of dlltool name
Allow to override it with the DLLTOOL environment variable, leaving "dlltool" as a fallback when not defined so backward compatibility is ensured. https://bugzilla.gnome.org/show_bug.cgi?id=761984
Diffstat (limited to 'giscanner/ccompiler.py')
-rw-r--r--giscanner/ccompiler.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 021345ee..6ddbdfe4 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -281,8 +281,7 @@ class CCompiler(object):
args.append(utils.which(os.environ.get('SHELL', 'sh.exe')))
args.extend(libtool)
args.append('--mode=execute')
- # FIXME: it could have prefix (i686-w64-mingw32-dlltool.exe)
- args.extend(['dlltool.exe', '--identify'])
+ args.extend([os.environ.get('DLLTOOL', 'dlltool.exe'), '--identify'])
proc = subprocess.Popen([self.compiler_cmd, '-print-search-dirs'],
stdout=subprocess.PIPE)
o, e = proc.communicate()