summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Fontana <ntd@entidi.it>2015-03-23 19:29:56 +0100
committerColin Walters <walters@verbum.org>2016-02-16 16:28:44 -0500
commit7e7067785ce0c0352c32f6d60cb6e011b912f984 (patch)
tree0ee09a900bc9809db4ec69772d7422ee9ebd985f
parent72b6df60f2d6bcd3628f57c794430f1eec4a04aa (diff)
downloadgobject-introspection-7e7067785ce0c0352c32f6d60cb6e011b912f984.tar.gz
scanner: Assume gcc use the same path separator as python
resolve_windows_libs() uses `gcc -print-search-dirs`. When we are cross compiling with MinGW on linux, gcc uses ':' as path separator, not ';'. https://bugzilla.gnome.org/show_bug.cgi?id=761981
-rw-r--r--giscanner/ccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 6ddbdfe4..c83bd7ea 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -287,7 +287,7 @@ class CCompiler(object):
o, e = proc.communicate()
for line in o.decode('ascii').splitlines():
if line.startswith('libraries: '):
- libsearch = line[len('libraries: '):].split(';')
+ libsearch = line[len('libraries: '):].split(os.pathsep)
shlibs = []
not_resolved = []