From b6c7665634a667d5fd8a3c7454439c94767562d5 Mon Sep 17 00:00:00 2001 From: "sgk@google.com" Date: Tue, 7 Apr 2009 19:42:02 +0000 Subject: V8-specific release-specific flags in the gyp build. Review URL: http://codereview.chromium.org/63064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13267 0039d316-1c4b-4281-b951-d872f2087c98 --- build/temp_gyp/v8.gyp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'build/temp_gyp') diff --git a/build/temp_gyp/v8.gyp b/build/temp_gyp/v8.gyp index a44a266..49f6d0e 100644 --- a/build/temp_gyp/v8.gyp +++ b/build/temp_gyp/v8.gyp @@ -248,6 +248,25 @@ 'ENABLE_LOGGING_AND_PROFILING', ], }, + 'Release': { + 'defines': [ + 'ENABLE_LOGGING_AND_PROFILING', + ], + 'conditions': [ + ['OS=="linux"', { + 'cflags!': [ + '-O2', + ], + 'cflags': [ + '-fno-rtti', + '-fdata-sections', + '-ffunction-sections', + '-fomit-frame-pointer', + '-O3', + ], + }], + ], + }, }, 'xcode_settings': { 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', -- cgit v1.1