Bug 1025393 - Enable building webrtc with clang-cl; r=jesup
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 16 Jun 2014 18:17:47 -0400
changeset 188953 412e31d5a16947768ec3a8e645fe5b739ce2464b
parent 188952 3d405f960e94e79b07f3720683d3a04829af176b
child 188954 51144145675ea873036130a6b3a5fb0bfdbda541
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersjesup
bugs1025393
milestone33.0a1
Bug 1025393 - Enable building webrtc with clang-cl; r=jesup
media/webrtc/trunk/webrtc/common_audio/common_audio.gyp
media/webrtc/trunk/webrtc/modules/audio_processing/audio_processing.gypi
--- a/media/webrtc/trunk/webrtc/common_audio/common_audio.gyp
+++ b/media/webrtc/trunk/webrtc/common_audio/common_audio.gyp
@@ -150,17 +150,21 @@
       'targets': [
         {
           'target_name': 'common_audio_sse2',
           'type': 'static_library',
           'sources': [
             'resampler/sinc_resampler_sse.cc',
           ],
           'cflags': ['-msse2',],
-          'cflags_mozilla': ['-msse2',],
+          'conditions': [
+            [ 'os_posix == 1', {
+              'cflags_mozilla': ['-msse2',],
+            }],
+          ],
           'xcode_settings': {
             'OTHER_CFLAGS': ['-msse2',],
           },
         },
       ],  # targets
     }],
     ['(target_arch=="arm" and arm_version==7) or target_arch=="armv7"', {
       'targets': [
--- a/media/webrtc/trunk/webrtc/modules/audio_processing/audio_processing.gypi
+++ b/media/webrtc/trunk/webrtc/modules/audio_processing/audio_processing.gypi
@@ -169,17 +169,21 @@
         {
           'target_name': 'audio_processing_sse2',
           'type': 'static_library',
           'sources': [
             'aec/aec_core_sse2.c',
             'aec/aec_rdft_sse2.c',
           ],
           'cflags': ['-msse2',],
-          'cflags_mozilla': [ '-msse2', ],
+          'conditions': [
+            [ 'os_posix == 1', {
+              'cflags_mozilla': ['-msse2',],
+            }],
+          ],
           'xcode_settings': {
             'OTHER_CFLAGS': ['-msse2',],
           },
         },
       ],
     }],
     ['(target_arch=="arm" and arm_version==7) or target_arch=="armv7"', {
       'targets': [{