Commit Graph

49 Commits

Author SHA1 Message Date
Michael Hirsch, Ph.D 902d0e579e
default fortran lib to static so windows can be tested 2019-07-30 15:33:10 -04:00
Michael Hirsch, Ph.D 051e5e0e35
skip fortran dyamiclib tests on Windows 2019-07-30 15:33:10 -04:00
Michael Hirsch, Ph.D 0706434afe
PGI doesn't have coarray fortran 2019-07-30 15:33:09 -04:00
Jussi Pakkanen 3e54719ab8
Merge pull request #5740 from scivision/intel-ci_fix
tests: Intel-cl fixes for Fortran
2019-07-30 18:21:30 +03:00
Michael Hirsch, Ph.D b5e9ab8ed0
fortran tests: non-gfortran compilers on Windows are best static libs
collapsed get_relative_files_list_from_dir to a one-liner via pathlib.Path
2019-07-30 03:17:14 -04:00
Michael Hirsch, Ph.D 26f8058ef2 Flang and PGI don't yet support coarray 2019-07-29 01:00:04 -04:00
Michael Hirsch, Ph.D 31e069e93f fortran-specific openMP tests 2019-06-25 09:17:48 -07:00
Michael Hirsch, Ph.D 2c9725a4bb only test if Zlib found 2019-06-24 14:06:32 -04:00
Michael Hirsch, Ph.D 1d6ed8cac8 windows ifort can't do shared_library sanely 2019-06-24 14:06:32 -04:00
Michael Hirsch, Ph.D 9a3bc75410 intel windows coarray args 2019-06-24 14:06:32 -04:00
Michael Hirsch, Ph.D 3f531be2e7 fortran 2003 use, non_instrinsic
incl

inver
2019-06-23 21:11:16 +03:00
Michael Hirsch, Ph.D 9dbd5f129b fortran submodule checks
fortran submodule checks
2019-06-23 21:11:16 +03:00
Michael Hirsch, Ph.D c8d144b064 fortran include syntax checks
minvers
2019-06-23 21:11:16 +03:00
Michael Hirsch, Ph.D ef53107f14 BUGFIX: Fortran module regex handle more edge cases 2019-06-23 17:27:46 +03:00
Michael Hirsch, Ph.D 930d2457e1 add fortarn use inline comment test 2019-06-20 12:45:41 -04:00
Michael Hirsch, Ph.D c214859304 add inline comment test for Fortran submodule 2019-06-20 12:41:40 -04:00
Michael Hirsch, Ph.D f652950602 add inline comment test for Fortran include 2019-06-20 12:40:49 -04:00
Michael Hirsch, Ph.D 2a7ef98aff BUGFIX syntax 2019-06-20 12:31:32 -04:00
Michael Hirsch, Ph.D d3294b58c4 make test more stringent by building separate library 2019-06-19 21:52:24 -04:00
Michael Hirsch, Ph.D f7465c0887 add fortran module inline comment test 2019-06-19 21:42:29 -04:00
Dylan Baker 7f1cecf25b 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.
2019-05-16 22:01:35 +03:00
Dylan Baker ecc1f17f8e tests/fortran/14: Add vsdef files
ICL and ifort need these to pass this tests.
2019-05-10 13:36:35 -07:00
Dylan Baker 23d2311d12 tests/fortran/9 cpp: It's okay to link ICL and ifort
This test currently assumes that the fortran compiler is gfotran, and
if we're not using g++ it skips. This patch changes it to skip if the
fotran compiler and the c++ compiler aren't the same family. This still
may skip in some cases it shouldn't (clang and gfort probably work fine
on windows), but it does enable ifort + ICL. Which is hte point.
2019-05-10 13:36:35 -07:00
Dylan Baker 0dc88487dd tests/fortran/1: call compiler.get_id() == str instead of compiler == str 2019-05-10 13:36:35 -07:00
Michael Hirsch, Ph.D 06bfc2dab6 per-target manual specification of link_language 2019-05-02 23:26:51 +03:00
Michael Hirsch, Ph.D 6e06ad1c1f add test case for same-name module+submodule 2019-03-25 21:19:38 -04:00
Michael Hirsch, Ph.D 972857fc1d
add fortran include test case 2019-03-14 01:54:22 -04:00
Michael Hirsch, Ph.D 39e6dc5885 correct Fortran self-dep logic
corrected, generalized self-referential Fortran fix

further refine logic
2019-02-27 14:08:08 +02:00
Michael Hirsch, Ph.D 32a344b949 Fortran: handle self-referential files 2019-02-26 19:16:50 +02:00
Michael Hirsch, Ph.D ebfb09f5d6 Fortran 2008/2018 Coarray support 2019-02-13 21:09:18 +02:00
Michael Hirsch, Ph.D 70e6f4198c Fortran 2008 submodule (#4874) 2019-02-05 22:41:44 +01:00
Michael Hirsch, Ph.D cccffaa29d BUGFIX: allow fc.run(code) to work, pick only Fortran module 2019-01-29 23:25:23 +02:00
Jussi Pakkanen 3997649139 Disable mixed (mscv/clang + gnu) Windows Fortran tests. Closes #4829. 2019-01-28 22:15:02 +02:00
Michael Hirsch, Ph.D 8636f31d9c BUGFIX: broken/missing Fortran code/unit tests 2019-01-27 20:57:21 +02:00
Dylan Baker 64107f5fe1 tests: Fix fortran + cpp test for ifort
To make ifort like rand we need to link with ifport, or we don't get
rand.
2018-11-15 18:42:25 -08:00
Matthew Krupcale 45cc001a40 Add support for finding libraries in Fortran projects
* mesonbuild/compilers/c.py: Make the `find_library` method more generic by allowing the user to supply the `code` for compiling and linking.
 * mesonbuild/compilers/fortran.py: Use the methods inherited from `Compiler` base class where appropriate. Also reuse `CComiler` methods where applicable. This should be sufficient to get various compiler/linker arguments as well as to compile and link Fortran programs. This was tested with `gfortran` compiler, and while the other compilers ought to work for simple cases, their methods are primarily inherited from the base `FortranCompiler` class.
 * test cases/fortran/10 find library/gzip.f90: Fortran module with some basic Fortran wrapper interfaces to `gzopen`, `gzwrite`, and `gzclose` C `zlib` functions.
 * test cases/fortran/10 find library/main.f90: Fortran program using the `gzip` Fortran interface module to write some data to a gzip file.
 * test cases/fortran/10 find library/meson.build: Meson build file for this test case. This demonstrates the ability to link the Fortran program against an external library.
2018-05-21 23:17:02 +03:00
Jussi Pakkanen a2fdaa9ea0 Can use C++ and FORTRAN in a single target. Closes #2685. 2018-05-02 22:58:07 +03:00
Bálint Aradi 809a5938ff Fix case sensitivity in Fortran module names 2017-05-26 23:21:27 +03:00
Bálint Aradi 1472f419ea Fix fortran tests without test() calls 2017-05-14 00:30:38 +03:00
Bálint Aradi 3d88ce70f4 Turn feature test into a proper unit test 2017-05-13 21:18:16 +02:00
Bálint Aradi 37ce7f01cf Add test for fortran dependency scanning fix 2017-05-12 15:36:38 +02:00
Nirbheek Chauhan 2589009d23 ifort: Derive from IntelCompiler base class
And fix the list of supported file suffixes, and use .f90 for all
fortran tests since ifort, the Intel Fortran compiler ignores files
ending with .f95, .f03, and .f08
2017-01-04 00:41:56 +05:30
Jussi Pakkanen 98c4fd2d5d Add per target argument for Fortran. 2016-12-20 22:46:36 +02:00
Marko Raatikainen 28f60ca474 Fix shared libraries for fortran 2015-08-31 20:20:11 +03:00
Jussi Pakkanen 5467b7d58b Made Fortran static libraries work. Closes #237. 2015-08-23 20:17:37 +03:00
Jussi Pakkanen 1b830c907f Handle Fortran sources with dependencies to themselves. 2014-08-08 14:29:20 +03:00
Jussi Pakkanen f3d0778403 Handle Fortran's MODULE PROCEDURE construct. 2014-08-08 13:35:46 +03:00
Jussi Pakkanen 5303b1d0f4 Scan Fortran dependencies, but it fails currently due to a deficiency in Ninja. 2014-08-03 20:37:03 +03:00
Jussi Pakkanen a77551f3d7 Basic Fortran support. 2014-08-01 16:25:29 +03:00