Skip to content

Commit

Permalink
Merge pull request numpy#26113 from r-devulap/meson-debug
Browse files Browse the repository at this point in the history
BLD: Do not use -O3 flag when building in debug mode
  • Loading branch information
rgommers authored Mar 29, 2024
2 parents c8eab25 + 0b88f3b commit bd9fea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/_core/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ max_opt = {
'msvc': ['/O2'],
'intel-cl': ['/O3'],
}.get(compiler_id, ['-O3'])
max_opt = cc.has_multi_arguments(max_opt) ? max_opt : []
max_opt = cc.has_multi_arguments(max_opt) and get_option('buildtype') != 'debug' ? max_opt : []

# Optional GCC compiler builtins and their call arguments.
# If given, a required header and definition name (HAVE_ prepended)
Expand Down

0 comments on commit bd9fea5

Please sign in to comment.