diff options
author | mattip <matti.picus@gmail.com> | 2023-01-19 11:53:54 +0200 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2023-02-20 21:07:30 +0000 |
commit | 587907098e69f833c4cd39aca49127c2f8abecbb (patch) | |
tree | 55ea57eb474dfd64106a03502b97ecc58774b313 /numpy/core/meson.build | |
parent | 8df3626af816b570809e31ac9610148f110af81a (diff) | |
download | numpy-587907098e69f833c4cd39aca49127c2f8abecbb.tar.gz |
BUILD: add a windows meson CI job, tweak meson build parameters, fix typo
Diffstat (limited to 'numpy/core/meson.build')
-rw-r--r-- | numpy/core/meson.build | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/numpy/core/meson.build b/numpy/core/meson.build index e094f9dab..651f7a00a 100644 --- a/numpy/core/meson.build +++ b/numpy/core/meson.build @@ -589,11 +589,17 @@ c_args_common = [ ] # Same as NPY_CXX_FLAGS (TODO: extend for what ccompiler_opt adds) -cpp_args_common = c_args_common + [ - '-D__STDC_VERSION__=0', # for compatibility with C headers - '-fno-exceptions', # no exception support - '-fno-rtti', # no runtime type information -] +if cc.get_id() == 'msvc' + cpp_args_common = c_args_common + [ + '-D__STDC_VERSION__=0', # for compatibility with C headers + ] +else + cpp_args_common = c_args_common + [ + '-D__STDC_VERSION__=0', # for compatibility with C headers + '-fno-exceptions', # no exception support + '-fno-rtti', # no runtime type information + ] +endif # Other submodules depend on generated headers and include directories from # core, wrap those up into a reusable dependency. Also useful for some test |