summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-01 01:23:48 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-01 01:23:48 +0000
commit967d0716f46b888e9385669ec178cae6bd937ee8 (patch)
tree85cd6a79f1f0cfa46960b113638d2cfc88206fc4 /build
parent03a9f69a4c78bc5c957762ba7c7ac89a6d5f36ec (diff)
downloadchromium_src-967d0716f46b888e9385669ec178cae6bd937ee8.zip
chromium_src-967d0716f46b888e9385669ec178cae6bd937ee8.tar.gz
chromium_src-967d0716f46b888e9385669ec178cae6bd937ee8.tar.bz2
Print out some warnings on unsupported build flags.
Cuts down on bug reports. Review URL: http://codereview.chromium.org/57077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12925 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build')
-rw-r--r--build/SConscript.main11
1 files changed, 10 insertions, 1 deletions
diff --git a/build/SConscript.main b/build/SConscript.main
index 2b91fc2..0f6d833 100644
--- a/build/SConscript.main
+++ b/build/SConscript.main
@@ -155,7 +155,13 @@ root_env = Environment(
'__env__, RDirs, TARGET, SOURCE)}'),
)
-root_env['req_system_libs'] = ARGUMENTS.get('SYSTEM_LIBS', '').split(',')
+root_env['req_system_libs'] = []
+if 'SYSTEM_LIBS' in ARGUMENTS:
+ root_env['req_system_libs'] = ARGUMENTS['SYSTEM_LIBS'].split(',')
+ print "WARNING: Using system libs is not yet supported and may fail."
+ print "WARNING: You should only use this flag if you're willing to diagnose"
+ print "WARNING: and fix the inevitable link failures."
+
root_env['_GYP'] = ARGUMENTS.get('GYP') and '_gyp' or ''
def WantSystemLib(env, lib):
@@ -589,6 +595,9 @@ if ARGUMENTS.get('SYMBOLS') == '1':
# Build shared libraries (useful for fast links) when SHARED=1.
if ARGUMENTS.get('SHARED') == '1':
+ print "WARNING: The shared link frequently breaks and is unlikely to work."
+ print "WARNING: You should only use this flag if you're willing to diagnose"
+ print "WARNING: and fix the inevitable link failures."
linux_env.Replace(COMPONENT_STATIC=False)
# Build with system-provided NSS and GTK.