Skip to content

Commit

Permalink
configure: revert to -isystem rather than -idirafter
Browse files Browse the repository at this point in the history
See discussion on #2747
  • Loading branch information
jdtournier committed Nov 22, 2023
1 parent 5e95b5a commit a5fefd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def get_flags (default=None, env=None, pkg_config_flags=None):
flags = []
for flag in shlex.split (execute ([ 'pkg-config' ] + pkg_config_flags.split(), RunError)[1]):
if flag.startswith ('-I'):
flags += [ '-idirafter', flag[2:] ]
flags += [ '-isystem', flag[2:] ]
else:
flags += [ flag ]
return flags
Expand Down Expand Up @@ -1318,7 +1318,7 @@ int main() { Foo f; }
if entry[0] != '$' and not entry == '-I.':
entry = entry.replace('\"','').replace("'",'')
if entry.startswith('-I'):
qt_cflags += [ '-idirafter', entry[2:] ]
qt_cflags += [ '-isystem', entry[2:] ]
else:
qt_cflags += [ entry ]

Expand Down

0 comments on commit a5fefd7

Please sign in to comment.