Skip to content

Commit

Permalink
Merge pull request #2754 from MRtrix3/configure_isystem
Browse files Browse the repository at this point in the history
configure: revert to -isystem rather than -idirafter
  • Loading branch information
jdtournier authored Nov 22, 2023
2 parents 5e95b5a + 17246b5 commit 4e4b6d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: install dependencies
run: |
sudo apt-get update
sudo apt-get install clang libqt5opengl5-dev libqt5svg5-dev libglvnd-dev libeigen3-dev zlib1g-dev libfftw3-dev
sudo apt-get install clang libqt5opengl5-dev libqt5svg5-dev libglvnd-dev libeigen3-dev zlib1g-dev libfftw3-dev python3-distutils
- name: configure
run: ./configure -assert || { cat configure.log; false; }
Expand All @@ -41,6 +41,8 @@ jobs:
- name: binary tests
run: ./run_tests binaries || { cat testing_binaries.log; false; }

- name: check command documentation
run: ./docs/generate_user_docs.sh && git diff --exit-code docs/



Expand Down Expand Up @@ -103,9 +105,6 @@ jobs:
- name: binary tests
run: ./run_tests binaries || { cat testing_binaries.log; false; }

- name: check command documentation
run: ./docs/generate_user_docs.sh && git diff --exit-code docs/




Expand Down
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 4e4b6d4

Please sign in to comment.