From 79ee97cf43d7713684dbcf706c07041e1d855539 Mon Sep 17 00:00:00 2001 From: "kjellander@webrtc.org" Date: Thu, 4 Sep 2014 14:10:49 +0000 Subject: [PATCH] [MIPS] Fix gn gen failure for MIPS in webrtc Fixes the following failure for mips: "ERROR at //third_party/webrtc/BUILD.gn:136:7: Undefined variable for +=. cflags += [ "-mhard-float" ] ^----- I don't have something with this name in scope now." BUG=3441 TEST=In Chromium. Passing compile locally on Linux using: gn gen out-gn/mips --args="is_debug=false os=\"android\" cpu_arch=\"mipsel\"" --verbose && ninja -C out-gn/mips all gn gen out-gn/arm --args="is_debug=false os=\"android\" cpu_arch=\"arm\"" --verbose && ninja -C out-gn/arm all gn gen out-gn/x86-linux --args="is_debug=false os=\"linux\"" --verbose && ninja -C out-gn/x86-linux webrtc R=kjellander@webrtc.org Review URL: https://webrtc-codereview.appspot.com/15349004 Patch from Gordana Cmiljanovic . git-svn-id: http://webrtc.googlecode.com/svn/trunk@7063 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/BUILD.gn | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webrtc/BUILD.gn b/webrtc/BUILD.gn index 68f05d15b7..20290ebb37 100644 --- a/webrtc/BUILD.gn +++ b/webrtc/BUILD.gn @@ -70,6 +70,8 @@ if (have_dbus_glib) { } config("common_config") { + cflags = [] + cflags_cc = [] if (restrict_webrtc_logging) { defines = [ "WEBRTC_RESTRICT_LOGGING" ] }