OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 the V8 project authors. All rights reserved. |
2 # Redistribution and use in source and binary forms, with or without | 2 # Redistribution and use in source and binary forms, with or without |
3 # modification, are permitted provided that the following conditions are | 3 # modification, are permitted provided that the following conditions are |
4 # met: | 4 # met: |
5 # | 5 # |
6 # * Redistributions of source code must retain the above copyright | 6 # * Redistributions of source code must retain the above copyright |
7 # notice, this list of conditions and the following disclaimer. | 7 # notice, this list of conditions and the following disclaimer. |
8 # * Redistributions in binary form must reproduce the above | 8 # * Redistributions in binary form must reproduce the above |
9 # copyright notice, this list of conditions and the following | 9 # copyright notice, this list of conditions and the following |
10 # disclaimer in the documentation and/or other materials provided | 10 # disclaimer in the documentation and/or other materials provided |
(...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1594 # env.Copy without getting warnings for compatibility with older | 1594 # env.Copy without getting warnings for compatibility with older |
1595 # version of scons. Also, there's a bug in some revisions that | 1595 # version of scons. Also, there's a bug in some revisions that |
1596 # doesn't allow this flag to be set, so we swallow any exceptions. | 1596 # doesn't allow this flag to be set, so we swallow any exceptions. |
1597 # Lovely. | 1597 # Lovely. |
1598 try: | 1598 try: |
1599 SetOption('warn', 'no-deprecated') | 1599 SetOption('warn', 'no-deprecated') |
1600 except: | 1600 except: |
1601 pass | 1601 pass |
1602 | 1602 |
1603 | 1603 |
| 1604 def WarnAboutDeprecation(): |
| 1605 print """ |
| 1606 ####################################################### |
| 1607 # WARNING: Building V8 with SCons is deprecated and # |
| 1608 # will not work much longer. Please switch to using # |
| 1609 # the GYP-based build now. Instructions are at # |
| 1610 # http://code.google.com/p/v8/wiki/BuildingWithGYP. # |
| 1611 ####################################################### |
| 1612 """ |
| 1613 |
| 1614 WarnAboutDeprecation() |
| 1615 import atexit |
| 1616 atexit.register(WarnAboutDeprecation) |
1604 Build() | 1617 Build() |
OLD | NEW |