Hack to avoid bug in scons 0.ninety-something which doesn't allow
authorchristian.plesner.hansen@gmail.com <christian.plesner.hansen@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 1 Sep 2008 12:00:32 +0000 (12:00 +0000)
committerchristian.plesner.hansen@gmail.com <christian.plesner.hansen@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 1 Sep 2008 12:00:32 +0000 (12:00 +0000)
warning options to be set.  I'm loving scons right now.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@75 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

SConstruct

index 618743c..c108d30 100644 (file)
@@ -487,8 +487,13 @@ def Build():
 
 # We disable deprecation warnings because we need to be able to use
 # env.Copy without getting warnings for compatibility with older
-# version of scons.
-SetOption('warn', 'no-deprecated')
+# version of scons.  Also, there's a bug in some revisions that
+# doesn't allow this flag to be set, so we swallow any exceptions.
+# Lovely.
+try:
+  SetOption('warn', 'no-deprecated')
+except:
+  pass
 
 
 Build()