From 0b7be94f2e7e5ac46351328734739f1b076712ac Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Sun, 23 Sep 2018 16:06:38 +0200 Subject: 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) --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meson.build') 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 ') 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 -- cgit v1.2.3