| 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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 | 883 |
| 884 def VerifyOptions(env): | 884 def VerifyOptions(env): |
| 885 if not IsLegal(env, 'mode', ['debug', 'release']): | 885 if not IsLegal(env, 'mode', ['debug', 'release']): |
| 886 return False | 886 return False |
| 887 if not IsLegal(env, 'sample', ["shell", "process", "lineprocessor"]): | 887 if not IsLegal(env, 'sample', ["shell", "process", "lineprocessor"]): |
| 888 return False | 888 return False |
| 889 if not IsLegal(env, 'regexp', ["native", "interpreted"]): | 889 if not IsLegal(env, 'regexp', ["native", "interpreted"]): |
| 890 return False | 890 return False |
| 891 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on'
: | 891 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on'
: |
| 892 Abort("Profiling on windows only supported for static library.") | 892 Abort("Profiling on windows only supported for static library.") |
| 893 if env['gdbjit'] == 'on' and (env['os'] != 'linux' or (env['arch'] != 'ia32' a
nd env['arch'] != 'x64')): | 893 if env['gdbjit'] == 'on' and (env['os'] != 'linux' or (env['arch'] != 'ia32' a
nd env['arch'] != 'x64' and env['arch'] != 'arm')): |
| 894 Abort("GDBJIT interface is supported only for Intel-compatible (ia32 or x64)
Linux target.") | 894 Abort("GDBJIT interface is supported only for Intel-compatible (ia32 or x64)
Linux target.") |
| 895 if env['os'] == 'win32' and env['soname'] == 'on': | 895 if env['os'] == 'win32' and env['soname'] == 'on': |
| 896 Abort("Shared Object soname not applicable for Windows.") | 896 Abort("Shared Object soname not applicable for Windows.") |
| 897 if env['soname'] == 'on' and env['library'] == 'static': | 897 if env['soname'] == 'on' and env['library'] == 'static': |
| 898 Abort("Shared Object soname not applicable for static library.") | 898 Abort("Shared Object soname not applicable for static library.") |
| 899 if env['os'] != 'win32' and env['pgo'] != 'off': | 899 if env['os'] != 'win32' and env['pgo'] != 'off': |
| 900 Abort("Profile guided optimization only supported on Windows.") | 900 Abort("Profile guided optimization only supported on Windows.") |
| 901 if env['cache'] and not os.path.isdir(env['cache']): | 901 if env['cache'] and not os.path.isdir(env['cache']): |
| 902 Abort("The specified cache directory does not exist.") | 902 Abort("The specified cache directory does not exist.") |
| 903 if not (env['arch'] == 'arm' or env['simulator'] == 'arm') and ('unalignedacce
sses' in ARGUMENTS): | 903 if not (env['arch'] == 'arm' or env['simulator'] == 'arm') and ('unalignedacce
sses' in ARGUMENTS): |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1183 # version of scons. Also, there's a bug in some revisions that | 1183 # version of scons. Also, there's a bug in some revisions that |
| 1184 # doesn't allow this flag to be set, so we swallow any exceptions. | 1184 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 1185 # Lovely. | 1185 # Lovely. |
| 1186 try: | 1186 try: |
| 1187 SetOption('warn', 'no-deprecated') | 1187 SetOption('warn', 'no-deprecated') |
| 1188 except: | 1188 except: |
| 1189 pass | 1189 pass |
| 1190 | 1190 |
| 1191 | 1191 |
| 1192 Build() | 1192 Build() |
| OLD | NEW |