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:
authorHenrik Gramner <gramner@twoorioles.com>2019-05-16 21:55:25 +0300
committerHenrik Gramner <gramner@twoorioles.com>2019-05-22 00:48:28 +0300
commit3e0ec4cde1aecac8ded7ac49730d574f89341a4c (patch)
treeee8ef943f783b316df65d9431cee7cd015fa2131 /meson.build
parent75558f8b2fadb34bda1481dd13c76066b2f979cb (diff)
build: Enable SSE2 by default on x86-32
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build27
1 files changed, 17 insertions, 10 deletions
diff --git a/meson.build b/meson.build
index 89302a8..32e8f97 100644
--- a/meson.build
+++ b/meson.build
@@ -180,16 +180,23 @@ endif
# Compiler flags that should be set
# But when the compiler does not supports them
# it is not an error and silently tolerated
-optional_arguments += [
- '-Wundef',
- '-Werror=vla',
- '-Wno-maybe-uninitialized',
- '-Wno-missing-field-initializers',
- '-Wno-unused-parameter',
- '-Werror=missing-prototypes',
- '-Wshorten-64-to-32',
-]
-if cc.get_id() == 'msvc'
+if cc.get_id() != 'msvc'
+ optional_arguments += [
+ '-Wundef',
+ '-Werror=vla',
+ '-Wno-maybe-uninitialized',
+ '-Wno-missing-field-initializers',
+ '-Wno-unused-parameter',
+ '-Werror=missing-prototypes',
+ '-Wshorten-64-to-32',
+ ]
+ if host_machine.cpu_family() == 'x86'
+ optional_arguments += [
+ '-msse2',
+ '-mfpmath=sse',
+ ]
+ endif
+else
optional_arguments += [
'-wd4028', # parameter different from declaration
'-wd4996' # use of POSIX functions