tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Undebuggable meson vs numpy



On Fri, Jul 25, 2025 at 11:16:05PM +0200, Thomas Klausner wrote:
> Attached is a small meson file that reproduces the test.

 Thomas
project('my_project', 'cpp', version : '1.0.0')

cc = meson.get_compiler('cpp')

complex_types_to_check = [
    ['NPY_SIZEOF_COMPLEX_FLOAT', 'complex float'],
    ['NPY_SIZEOF_COMPLEX_DOUBLE', 'complex double'],
    ['NPY_SIZEOF_COMPLEX_LONGDOUBLE', 'complex long double'],
]

foreach symbol_type: complex_types_to_check
  if not cc.has_type(symbol_type[1], prefix: '#include <complex.h>')
    t = symbol_type[1]
    error(f'"complex.h" header does not include complex type @t@')
  endif
endforeach


Home | Main Index | Thread Index | Old Index