Skip to content
Snippets Groups Projects
Commit 0b7be94f authored by Marvin Scholz's avatar Marvin Scholz
Browse files

Build: Fix meson build with meson 0.47.x

Once meson 0.48 is required, this should be changed back to use the
optimization option instead. (See #1)
parent dc2e1783
No related branches found
No related tags found
1 merge request!20Build: Fix meson build with meson 0.47.x
......@@ -119,7 +119,8 @@ elif cc.has_function('_aligned_malloc', prefix: '#include <malloc.h>')
cdata.set('HAVE_ALIGNED_MALLOC', 1)
endif
if get_option('optimization') != '0'
if (get_option('buildtype') != 'debug' and
get_option('buildtype') != 'plain')
add_project_arguments('-fomit-frame-pointer', '-ffast-math',
language: 'c')
endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment