diff options
author | Marvin Scholz <epirat07@gmail.com> | 2018-09-23 17:06:38 +0300 |
---|---|---|
committer | Marvin Scholz <epirat07@gmail.com> | 2018-09-23 17:20:58 +0300 |
commit | 0b7be94f2e7e5ac46351328734739f1b076712ac (patch) | |
tree | 0d4a54d0365d56f5dcbef52bb67b38ccbddb24f8 /meson.build | |
parent | dc2e1783393b26c1a09015b885ceb8bf1cbda4b3 (diff) |
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)
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 797ae04..4e79736 100644 --- a/meson.build +++ b/meson.build @@ -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 |