From 7f1cecf25b4e78df44dde1ed071088e50d7370a3 Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Tue, 7 May 2019 16:42:24 -0700 Subject: compilers/fortran: Fix all has_argument methods in meson Apparently we have no tests for this because this is broken pretty badly. This extends the basic test to actually check for the correct free-form argument and thus test this. --- test cases/fortran/1 basic/meson.build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test cases/fortran') diff --git a/test cases/fortran/1 basic/meson.build b/test cases/fortran/1 basic/meson.build index 959ad35..52e2d6f 100644 --- a/test cases/fortran/1 basic/meson.build +++ b/test cases/fortran/1 basic/meson.build @@ -5,6 +5,9 @@ if fc.get_id() == 'gcc' add_global_arguments('-fbounds-check', language : 'fortran') endif +args = fc.first_supported_argument(['-ffree-form', '-free', '/free']) +assert(args != [], 'No arguments found?') + e = executable('simple', 'simple.f90', - fortran_args : '-ffree-form') + fortran_args : args) test('Simple Fortran', e) -- cgit v1.1