We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13cb56a commit dc5b103Copy full SHA for dc5b103
meson.build
@@ -12,12 +12,14 @@ if get_option('default_library') == 'static'
12
static_subproject = meson.is_subproject()
13
endif
14
15
+cc = meson.get_compiler('c')
16
+
17
if get_option('enable_opt') == false
18
add_project_arguments('-DSPNG_DISABLE_OPT', language : 'c')
19
+elif cc.get_argument_syntax() == 'gcc' and host_machine.system() == 'x86'
20
+ add_project_arguments('-msse2', language : 'c')
21
22
-cc = meson.get_compiler('c')
-
23
# Check for GNU target_clones attribute
24
if cc.compiles(files('tests/target_clones.c'), args : '-Werror', name : 'have target_clones')
25
add_project_arguments('-DSPNG_ENABLE_TARGET_CLONES', language : 'c')
0 commit comments