Skip to content

Commit

Permalink
CI: Try putting -lm in the link_args of each extension module.
Browse files Browse the repository at this point in the history
  • Loading branch information
WarrenWeckesser committed Sep 10, 2023
1 parent f2803a7 commit ddfeef9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ endif
##if c_m_dep.found()
## add_project_link_arguments('-lm', language : 'c')
##endif
add_project_link_arguments('-lm', language : 'c')
##add_project_link_arguments('-lm', language : 'c')

# C++ shouldn't need -lm, but the Windows build seems to be missing
# 'feraiseexcept', so let's try...
##cpp_m_dep = cpp.find_library('m', required : false)
##if cpp_m_dep.found()
## add_project_link_arguments('-lm', language : 'cpp')
##endif
add_project_link_arguments('-lm', language : 'cpp')
##add_project_link_arguments('-lm', language : 'cpp')

# https://mesonbuild.com/Python-module.html
py_mod = import('python')
Expand Down
1 change: 1 addition & 0 deletions ufunclab/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ foreach src_dir : gufunc_cxx_src_dirs
[src, '../src/util/ufunc_tools.h'],
include_directories: [inc_np],
dependencies: [np_dep, npymath_lib],
link_args: ['-lm'],
install: true,
subdir: 'ufunclab'
)
Expand Down

0 comments on commit ddfeef9

Please sign in to comment.