Skip to content
Snippets Groups Projects

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

Merged Marvin Scholz requested to merge ePirat/dav1d:optiflags into master
+ 4
2
@@ -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')
Loading