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

@ -195,7 +195,9 @@ if (current_cpu == "x86" || current_cpu == "x64") {
"resampler/sinc_resampler_sse.cc",
]
cflags = [ "-msse2" ]
if (is_posix) {
cflags = [ "-msse2" ]
}
configs += [ "..:common_inherited_config" ]

View File

@ -201,10 +201,14 @@
'fir_filter_sse.cc',
'resampler/sinc_resampler_sse.cc',
],
'cflags': ['-msse2',],
'xcode_settings': {
'OTHER_CFLAGS': ['-msse2',],
},
'conditions': [
['os_posix==1', {
'cflags': [ '-msse2', ],
'xcode_settings': {
'OTHER_CFLAGS': [ '-msse2', ],
},
}],
],
},
], # targets
}],

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', ],
},
}],
],
},
],
}],

View File

@ -146,10 +146,11 @@
"differ_block_sse2.h",
],
'conditions': [
[ 'os_posix == 1 and OS != "mac"', {
'cflags': [
'-msse2',
],
['os_posix==1', {
'cflags': [ '-msse2', ],
'xcode_settings': {
'OTHER_CFLAGS': [ '-msse2', ],
},
}],
],
},