diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-08-08 21:15:39 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-08-08 21:15:39 +0300 |
commit | b4d2437f24b23fa31b6a61fab0d4e1056a34a5b1 (patch) | |
tree | 58ce2d7797f4878a85b549b5d373043df0c800f4 | |
parent | 1b830c907f5cf5bdb872a02832b0924d2c635276 (diff) | |
download | meson-b4d2437f24b23fa31b6a61fab0d4e1056a34a5b1.zip meson-b4d2437f24b23fa31b6a61fab0d4e1056a34a5b1.tar.gz meson-b4d2437f24b23fa31b6a61fab0d4e1056a34a5b1.tar.bz2 |
Ignore missing Fortran modules as they may come from the compiler itself.
-rw-r--r-- | ninjabackend.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ninjabackend.py b/ninjabackend.py index d7b1cf1..823cab6 100644 --- a/ninjabackend.py +++ b/ninjabackend.py @@ -1009,8 +1009,14 @@ class NinjaBackend(backends.Backend): if usematch is not None: usename = usematch.group(1) if usename not in tdeps: - raise InvalidArguments('Module %s in file %s not provided by any other source file.' % - (usename, src)) + # The module is not provided by any source file. This is due to + # a) missing file/typo/etc + # b) using a module provided by the compiler, such as OpenMP + # There's no easy way to tell which is which (that I know of) + # so just ignore this and go on. Ideally we would print a + # warning message to the user but this is a common occurrance, + # which would lead to lots of distracting noise. + continue mod_source_file = tdeps[usename] # Check if a source uses a module it exports itself. # Potential bug if multiple targets have a file with |