| OLD | NEW |
| 1 # Copyright 2010 the V8 project authors. All rights reserved. | 1 # Copyright 2010 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 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 | 890 |
| 891 def VerifyOptions(env): | 891 def VerifyOptions(env): |
| 892 if not IsLegal(env, 'mode', ['debug', 'release']): | 892 if not IsLegal(env, 'mode', ['debug', 'release']): |
| 893 return False | 893 return False |
| 894 if not IsLegal(env, 'sample', ["shell", "process", "lineprocessor"]): | 894 if not IsLegal(env, 'sample', ["shell", "process", "lineprocessor"]): |
| 895 return False | 895 return False |
| 896 if not IsLegal(env, 'regexp', ["native", "interpreted"]): | 896 if not IsLegal(env, 'regexp', ["native", "interpreted"]): |
| 897 return False | 897 return False |
| 898 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on'
: | 898 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on'
: |
| 899 Abort("Profiling on windows only supported for static library.") | 899 Abort("Profiling on windows only supported for static library.") |
| 900 if env['gdbjit'] == 'on' and (env['os'] != 'linux' or (env['arch'] != 'ia32' a
nd env['arch'] != 'x64')): | 900 if env['gdbjit'] == 'on' and (env['os'] != 'linux' or (env['arch'] != 'ia32' a
nd env['arch'] != 'x64' and env['arch'] != 'arm')): |
| 901 Abort("GDBJIT interface is supported only for Intel-compatible (ia32 or x64)
Linux target.") | 901 Abort("GDBJIT interface is supported only for Intel-compatible (ia32 or x64)
or ARM-compatible Linux target.") |
| 902 if env['prof'] == 'oprofile' and env['os'] != 'linux': | 902 if env['prof'] == 'oprofile' and env['os'] != 'linux': |
| 903 Abort("OProfile is only supported on Linux.") | 903 Abort("OProfile is only supported on Linux.") |
| 904 if env['os'] == 'win32' and env['soname'] == 'on': | 904 if env['os'] == 'win32' and env['soname'] == 'on': |
| 905 Abort("Shared Object soname not applicable for Windows.") | 905 Abort("Shared Object soname not applicable for Windows.") |
| 906 if env['soname'] == 'on' and env['library'] == 'static': | 906 if env['soname'] == 'on' and env['library'] == 'static': |
| 907 Abort("Shared Object soname not applicable for static library.") | 907 Abort("Shared Object soname not applicable for static library.") |
| 908 if env['os'] != 'win32' and env['pgo'] != 'off': | 908 if env['os'] != 'win32' and env['pgo'] != 'off': |
| 909 Abort("Profile guided optimization only supported on Windows.") | 909 Abort("Profile guided optimization only supported on Windows.") |
| 910 if env['cache'] and not os.path.isdir(env['cache']): | 910 if env['cache'] and not os.path.isdir(env['cache']): |
| 911 Abort("The specified cache directory does not exist.") | 911 Abort("The specified cache directory does not exist.") |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1192 # version of scons. Also, there's a bug in some revisions that | 1192 # version of scons. Also, there's a bug in some revisions that |
| 1193 # doesn't allow this flag to be set, so we swallow any exceptions. | 1193 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 1194 # Lovely. | 1194 # Lovely. |
| 1195 try: | 1195 try: |
| 1196 SetOption('warn', 'no-deprecated') | 1196 SetOption('warn', 'no-deprecated') |
| 1197 except: | 1197 except: |
| 1198 pass | 1198 pass |
| 1199 | 1199 |
| 1200 | 1200 |
| 1201 Build() | 1201 Build() |
| OLD | NEW |