Skip to content

Commit b2550d1

Browse files
HaoZekecharris
authored andcommitted
BLD,BUG: quadmath required where available [f2py]
Closes numpygh-25000
1 parent 91cede9 commit b2550d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

numpy/f2py/_backends/meson.build.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ project('${modulename}',
66
'warning_level=1',
77
'buildtype=${buildtype}'
88
])
9+
fc = meson.get_compiler('fortran')
910

1011
py = import('python').find_installation(pure: false)
1112
py_dep = py.dependency()
@@ -28,6 +29,8 @@ inc_f2py = include_directories(incdir_f2py)
2829
fortranobject_c = incdir_f2py / 'fortranobject.c'
2930

3031
inc_np = include_directories(incdir_numpy, incdir_f2py)
32+
# gh-25000
33+
quadmath_dep = fc.find_library('quadmath', required: false)
3134

3235
py.extension_module('${modulename}',
3336
[
@@ -37,6 +40,7 @@ ${source_list},
3740
include_directories: [inc_np],
3841
dependencies : [
3942
py_dep,
43+
quadmath_dep,
4044
${dep_list}
4145
],
4246
install : true)

0 commit comments

Comments
 (0)