Fix unknown option '-msse2' warning

R=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/43169004

Cr-Commit-Position: refs/heads/master@{#9016}
This commit is contained in:
Henrik Kjellander
2015-04-16 08:57:16 +02:00
parent 7c324cac50
commit f2497cf517
5 changed files with 27 additions and 14 deletions

View File

@ -223,7 +223,9 @@ if (current_cpu == "x86" || current_cpu == "x64") {
"aec/aec_rdft_sse2.c",
]
cflags = [ "-msse2" ]
if (is_posix) {
cflags = [ "-msse2" ]
}
configs += [ "../..:common_config" ]
public_configs = [ "../..:common_inherited_config" ]

View File

@ -232,10 +232,14 @@
'aec/aec_core_sse2.c',
'aec/aec_rdft_sse2.c',
],
'cflags': ['-msse2',],
'xcode_settings': {
'OTHER_CFLAGS': ['-msse2',],
},
'conditions': [
['os_posix==1', {
'cflags': [ '-msse2', ],
'xcode_settings': {
'OTHER_CFLAGS': [ '-msse2', ],
},
}],
],
},
],
}],