Fix Fortran dep scanner for upper case file extensions. Closes #8395.

0.57
Jussi Pakkanen 4 years ago committed by Nirbheek Chauhan
parent b2b48a9240
commit 903136c787
  1. 2
      mesonbuild/backend/ninjabackend.py
  2. 3
      test cases/fortran/2 modules/meson.build
  3. 0
      test cases/fortran/2 modules/mymod.F90

@ -2523,7 +2523,7 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485'''))
if not self.should_use_dyndeps_for_target(target):
return
extension = os.path.splitext(src.fname)[1][1:]
if not (extension in compilers.lang_suffixes['fortran'] or extension in compilers.lang_suffixes['cpp']):
if not (extension.lower() in compilers.lang_suffixes['fortran'] or extension in compilers.lang_suffixes['cpp']):
return
dep_scan_file = self.get_dep_scan_file_for(target)
element.add_item('dyndep', dep_scan_file)

@ -3,6 +3,7 @@ project('modules', 'fortran',
commented = library('commented', 'comment_mod.f90')
e = executable('modprog', 'mymod.f90', 'prog.f90',
# Have one file with an upper case file extension.
e = executable('modprog', 'mymod.F90', 'prog.f90',
link_with: commented)
test('moduletest', e)

Loading…
Cancel
Save