Skip to content

Commit

Permalink
Meson: Pythran option complex_hook
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Jan 8, 2024
1 parent d230508 commit 5cc6b8a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
12 changes: 9 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ print(incdir)'''
).stdout().strip()

pythran = find_program('pythran', native: true)
pythran_dep = declare_dependency(
include_directories: incdir_pythran,
)

if get_option('use-xsimd') == true
# xsimd is unvendored from pythran by conda-forge, and due to a compiler
# activation bug the default <prefix>/include/ may not be visible (see
Expand All @@ -72,12 +70,20 @@ print(incdir)'''
include_directories: incdir_pythran,
dependencies: xsimd_dep,
)
else
pythran_dep = declare_dependency(
include_directories: incdir_pythran,
)
endif

cpp_args_pythran = [
'-DENABLE_PYTHON_MODULE',
'-D__PYTHRAN__=3',
'-DPYTHRAN_BLAS_NONE'
]

pythran_complex_hook = get_option('pythran-complex-hook')

endif

subdir('fluidsim')
6 changes: 6 additions & 0 deletions meson.options
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ option(
'or comma separated value representing multi-backends'
)
option('use-xsimd', type: 'boolean', value: true, description: 'use xsimd')
option(
'pythran-complex-hook',
type: 'boolean',
value: true,
description: 'Pythran complex_hook option'
)

0 comments on commit 5cc6b8a

Please sign in to comment.