diff options
author | Matti Picus <matti.picus@gmail.com> | 2023-01-16 22:12:43 +0200 |
---|---|---|
committer | Matti Picus <matti.picus@gmail.com> | 2023-01-16 22:12:43 +0200 |
commit | 6e699f1c6e9c52161450a8e74fa8943cf0be0aa9 (patch) | |
tree | 77f1b6eace43f126951fa6e096158a8d6e3eb6c3 | |
parent | 15e7d95959c625d992de9aded26c8864a7a4dd4f (diff) | |
download | numpy-meson.tar.gz |
add -DNDEBUG for MSVCmeson
-rw-r--r-- | numpy/meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/meson.build b/numpy/meson.build index 23bd83a04..1625197d5 100644 --- a/numpy/meson.build +++ b/numpy/meson.build @@ -10,6 +10,7 @@ endif # Platform detection is_windows = host_machine.system() == 'windows' is_mingw = is_windows and cc.get_id() == 'gcc' +is_msvc = is_windows and cc.get_id() == 'msvc' if is_windows # For mingw-w64, link statically against the UCRT. @@ -29,6 +30,9 @@ if is_windows endif endif endif +if is_msvc + add_project_arguments('-DNDEBUG', language: ['c', 'cpp']) +endif # Enable UNIX large file support on 32-bit systems (64 bit off_t, # lseek -> lseek64, etc.) |