[gobject-introspection] scanner: Assume gcc use the same path separator as python



commit 7e7067785ce0c0352c32f6d60cb6e011b912f984
Author: Nicola Fontana <ntd entidi it>
Date:   Mon Mar 23 19:29:56 2015 +0100

    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

 giscanner/ccompiler.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 6ddbdfe..c83bd7e 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 = []


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]