@@ -365,7 +365,7 @@ subroutine test_feature_collection_complex(error)
365365 & ' debug.linux.flags = "-DLINUX"' , &
366366 & ' debug.windows.ifort.flags = "/DEBUG:FULL"' , &
367367 & ' release.flags = "-O3"' , &
368- & ' release.gfortran.flags = "-march=native "'
368+ & ' release.gfortran.flags = "-mtune=generic -funroll-loops "'
369369 close (unit)
370370
371371 call get_package_data(package, temp_file, error)
@@ -1501,7 +1501,7 @@ subroutine test_feature_compiler_flags_integration(error)
15011501 write (unit, ' (a)' ) ' [features]'
15021502 write (unit, ' (a)' ) ' debug.gfortran.flags = "-g -Wall -fcheck=bounds"'
15031503 write (unit, ' (a)' ) ' debug.flags = "-g"'
1504- write (unit, ' (a)' ) ' release.gfortran.flags = "-O3 -march=native "'
1504+ write (unit, ' (a)' ) ' release.gfortran.flags = "-O3 -mtune=generic -funroll-loops "'
15051505 write (unit, ' (a)' ) ' release.flags = "-O2"'
15061506 write (unit, ' (a)' ) ' '
15071507 write (unit, ' (a)' ) ' [profiles]'
@@ -1575,8 +1575,13 @@ subroutine test_feature_compiler_flags_integration(error)
15751575 return
15761576 end if
15771577
1578- if (index (model% fortran_compile_flags, " -march=native" ) == 0 ) then
1579- call test_failed(error, " Expected release gfortran flags to contain '-march=native'" )
1578+ if (index (model% fortran_compile_flags, " -mtune" ) == 0 ) then
1579+ call test_failed(error, " Expected release gfortran flags to contain '-mtune'" )
1580+ return
1581+ end if
1582+
1583+ if (index (model% fortran_compile_flags, " -funroll-loops" ) == 0 ) then
1584+ call test_failed(error, " Expected release gfortran flags to contain '-funroll-loops'" )
15801585 return
15811586 end if
15821587
0 commit comments