[jhbuild] sysdeps: grok -isystem



commit c637d7c6eebefba3ed6f8e35463a07c53b925e09
Author: Ryan Lortie <desrt desrt ca>
Date:   Sun Dec 8 16:26:03 2013 -0500

    sysdeps: grok -isystem
    
    sysdeps inspects the user's CFLAGS and CPPFLAGS to try to get a list of
    system directories in which to search for c_include-type sysdeps.
    
    It does this by looking for -I flags.  Make sure it also includes
    -isystem.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720083

 jhbuild/utils/systeminstall.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/utils/systeminstall.py b/jhbuild/utils/systeminstall.py
index aeeca16..e6cf675 100755
--- a/jhbuild/utils/systeminstall.py
+++ b/jhbuild/utils/systeminstall.py
@@ -72,7 +72,7 @@ def systemdependencies_met(module_name, sysdeps, config):
             try:
                 while True:
                     arg = itr.next()
-                    if arg.strip() == '-I':
+                    if arg.strip() in ['-I', '-isystem']:
                         # extract paths handling quotes and multiple paths
                         paths += shell_split(itr.next())[0].split(os.pathsep)
                     elif arg.startswith('-I'):


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