| OLD | NEW |
| 1 # Copyright 2008 the V8 project authors. All rights reserved. | 1 # Copyright 2008 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 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 if not IsLegal(env, 'sample', ["shell", "process"]): | 664 if not IsLegal(env, 'sample', ["shell", "process"]): |
| 665 return False | 665 return False |
| 666 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on'
: | 666 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on'
: |
| 667 Abort("Profiling on windows only supported for static library.") | 667 Abort("Profiling on windows only supported for static library.") |
| 668 if env['prof'] == 'oprofile' and env['os'] != 'linux': | 668 if env['prof'] == 'oprofile' and env['os'] != 'linux': |
| 669 Abort("OProfile is only supported on Linux.") | 669 Abort("OProfile is only supported on Linux.") |
| 670 if env['os'] == 'win32' and env['soname'] == 'on': | 670 if env['os'] == 'win32' and env['soname'] == 'on': |
| 671 Abort("Shared Object soname not applicable for Windows.") | 671 Abort("Shared Object soname not applicable for Windows.") |
| 672 if env['soname'] == 'on' and env['library'] == 'static': | 672 if env['soname'] == 'on' and env['library'] == 'static': |
| 673 Abort("Shared Object soname not applicable for static library.") | 673 Abort("Shared Object soname not applicable for static library.") |
| 674 if env['arch'] == 'x64' and env['os'] != 'linux': | |
| 675 Abort("X64 compilation only allowed on Linux OS.") | |
| 676 for (name, option) in SIMPLE_OPTIONS.iteritems(): | 674 for (name, option) in SIMPLE_OPTIONS.iteritems(): |
| 677 if (not option.get('default')) and (name not in ARGUMENTS): | 675 if (not option.get('default')) and (name not in ARGUMENTS): |
| 678 message = ("A value for option %s must be specified (%s)." % | 676 message = ("A value for option %s must be specified (%s)." % |
| 679 (name, ", ".join(option['values']))) | 677 (name, ", ".join(option['values']))) |
| 680 Abort(message) | 678 Abort(message) |
| 681 if not env[name] in option['values']: | 679 if not env[name] in option['values']: |
| 682 message = ("Unknown %s value '%s'. Possible values are (%s)." % | 680 message = ("Unknown %s value '%s'. Possible values are (%s)." % |
| 683 (name, env[name], ", ".join(option['values']))) | 681 (name, env[name], ", ".join(option['values']))) |
| 684 Abort(message) | 682 Abort(message) |
| 685 | 683 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 914 # version of scons. Also, there's a bug in some revisions that | 912 # version of scons. Also, there's a bug in some revisions that |
| 915 # doesn't allow this flag to be set, so we swallow any exceptions. | 913 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 916 # Lovely. | 914 # Lovely. |
| 917 try: | 915 try: |
| 918 SetOption('warn', 'no-deprecated') | 916 SetOption('warn', 'no-deprecated') |
| 919 except: | 917 except: |
| 920 pass | 918 pass |
| 921 | 919 |
| 922 | 920 |
| 923 Build() | 921 Build() |
| OLD | NEW |