test cases/fortran/1 basic/meson.build
raw| 1 | project('simple fortran', 'fortran') |
| 2 | |
| 3 | fc = meson.get_compiler('fortran') |
| 4 | if fc.get_id() == 'gcc' |
| 5 | add_global_arguments('-fbounds-check', language : 'fortran') |
| 6 | endif |
| 7 | |
| 8 | args = fc.first_supported_argument(['-ffree-form', '-free', '/free']) |
| 9 | assert(args != [], 'No arguments found?') |
| 10 | |
| 11 | e = executable('simple', 'simple.f90', |
| 12 | fortran_args : args) |
| 13 | test('Simple Fortran', e) |