From 777c7bff9d40214069752a8ca91ade106a60536b Mon Sep 17 00:00:00 2001 From: "mpcomplete@google.com" Date: Tue, 30 Sep 2008 20:01:24 +0000 Subject: Changes to make Gears build on linux. Review URL: http://codereview.chromium.org/5023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2726 0039d316-1c4b-4281-b951-d872f2087c98 --- gears/SConscript.sqlite | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gears/SConscript.sqlite') diff --git a/gears/SConscript.sqlite b/gears/SConscript.sqlite index f1917dc..5c69258 100644 --- a/gears/SConscript.sqlite +++ b/gears/SConscript.sqlite @@ -48,7 +48,7 @@ env.Append( ], ) -if env['PLATFORM'] == 'win32': +if env['OS'] == 'win32': env.Append( CPPFLAGS = [ # from Chrome @@ -61,6 +61,16 @@ if env['PLATFORM'] == 'win32': '/wd4146', ], ) +elif env['OS'] == 'linux': + env.Append( + CPPFLAGS = [ + '-Wno-uninitialized', + '-Wno-unused-value', + ], + CPPDEFINES = [ + 'HAVE_USLEEP=1', + ], + ) input_files = [ '$SQLITE_DIR/src/alter.c', -- cgit v1.1