From e555b7b440c34bafc11b1f4a2f6f5094b931841f Mon Sep 17 00:00:00 2001 From: Henrik Kjellander Date: Wed, 22 Apr 2015 08:49:52 +0200 Subject: [PATCH] Fix CC flags in GN Windows build. It was applying a GCC command line flag on Windows R=brettw@chromium.org Review URL: https://webrtc-codereview.appspot.com/46989004 Cr-Commit-Position: refs/heads/master@{#9049} --- webrtc/base/BUILD.gn | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webrtc/base/BUILD.gn b/webrtc/base/BUILD.gn index 46bacd84f..6d0550440 100644 --- a/webrtc/base/BUILD.gn +++ b/webrtc/base/BUILD.gn @@ -21,9 +21,11 @@ config("rtc_base_config") { "LOGGING=1", ] - # TODO(henrike): issue 3307, make rtc_base build without disabling - # these flags. - cflags_cc = [ "-Wno-non-virtual-dtor" ] + if (is_posix) { + # TODO(henrike): issue 3307, make rtc_base build without disabling + # these flags. + cflags_cc = [ "-Wno-non-virtual-dtor" ] + } } config("rtc_base_chromium_config") {