Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2018-09-23 17:06:38 +0300
committerMarvin Scholz <epirat07@gmail.com>2018-09-23 17:20:58 +0300
commit0b7be94f2e7e5ac46351328734739f1b076712ac (patch)
tree0d4a54d0365d56f5dcbef52bb67b38ccbddb24f8 /meson.build
parentdc2e1783393b26c1a09015b885ceb8bf1cbda4b3 (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.build3
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