Commit dc2e1783 authored by Marvin Scholz's avatar Marvin Scholz

Build: Only use omit-frame-pointer and fast-math for optimized builds

parent fbba7321
......@@ -119,8 +119,10 @@ elif cc.has_function('_aligned_malloc', prefix: '#include <malloc.h>')
cdata.set('HAVE_ALIGNED_MALLOC', 1)
endif
add_project_arguments('-fomit-frame-pointer', '-ffast-math',
language: 'c')
if get_option('optimization') != '0'
add_project_arguments('-fomit-frame-pointer', '-ffast-math',
language: 'c')
endif
add_project_arguments('-Wall', '-Wundef',
language: 'c')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment