aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-07-29 01:18:54 -0400
committerMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2019-07-29 01:18:54 -0400
commitbc08ace84ee5006639558c7bba93e2d675ed472f (patch)
tree5b0a032ca4a4d5b9ef4c403b74f52c14f770d85a /mesonbuild
parent26f8058ef28abf969b7f057672dd8d613243ced5 (diff)
downloadmeson-bc08ace84ee5006639558c7bba93e2d675ed472f.zip
meson-bc08ace84ee5006639558c7bba93e2d675ed472f.tar.gz
meson-bc08ace84ee5006639558c7bba93e2d675ed472f.tar.bz2
Flang: add links for non-flang main program
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/compilers/fortran.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py
index e417566..c10e2ca 100644
--- a/mesonbuild/compilers/fortran.py
+++ b/mesonbuild/compilers/fortran.py
@@ -321,6 +321,9 @@ class FlangFortranCompiler(ClangCompiler, FortranCompiler):
'2': default_warn_args,
'3': default_warn_args}
+ def language_stdlib_only_link_flags(self) -> List[str]:
+ return ['-lflang', '-lpgmath']
+
class Open64FortranCompiler(FortranCompiler):
def __init__(self, exelist, version, for_machine: MachineChoice, is_cross, exe_wrapper=None, **kwags):
FortranCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrapper, **kwags)