ref: dc2e1783393b26c1a09015b885ceb8bf1cbda4b3
parent: fbba73216c65e7dcd94f2b5beecb46dfb8f9d5b5
author: Marvin Scholz <epirat07@gmail.com>
date: Sun Sep 23 09:36:41 EDT 2018
Build: Only use omit-frame-pointer and fast-math for optimized builds
--- a/meson.build
+++ b/meson.build
@@ -119,8 +119,10 @@
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')