From 6e699f1c6e9c52161450a8e74fa8943cf0be0aa9 Mon Sep 17 00:00:00 2001 From: Matti Picus Date: Mon, 16 Jan 2023 22:12:43 +0200 Subject: add -DNDEBUG for MSVC --- numpy/meson.build | 4 ++++ 1 file changed, 4 insertions(+) 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.) -- cgit v1.2.1