Chromium Code Reviews| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 222 'CCFLAGS': ['-m32'], | 222 'CCFLAGS': ['-m32'], |
| 223 'LINKFLAGS': ['-m32'], | 223 'LINKFLAGS': ['-m32'], |
| 224 }, | 224 }, |
| 225 'arch:x64': { | 225 'arch:x64': { |
| 226 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], | 226 'CPPDEFINES': ['V8_TARGET_ARCH_X64'], |
| 227 'CCFLAGS': ['-m64'], | 227 'CCFLAGS': ['-m64'], |
| 228 'LINKFLAGS': ['-m64'], | 228 'LINKFLAGS': ['-m64'], |
| 229 }, | 229 }, |
| 230 'prof:oprofile': { | 230 'prof:oprofile': { |
| 231 'CPPDEFINES': ['ENABLE_OPROFILE_AGENT'] | 231 'CPPDEFINES': ['ENABLE_OPROFILE_AGENT'] |
| 232 }, | |
| 233 'gdbjit:on': { | |
| 234 'CPPDEFINES': ['ENABLE_GDBJIT_INTERFACE'] | |
| 232 } | 235 } |
| 233 }, | 236 }, |
| 234 'msvc': { | 237 'msvc': { |
| 235 'all': { | 238 'all': { |
| 236 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 239 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
| 237 'CXXFLAGS': ['$CCFLAGS', '/GR-', '/Gy'], | 240 'CXXFLAGS': ['$CCFLAGS', '/GR-', '/Gy'], |
| 238 'CPPDEFINES': ['WIN32'], | 241 'CPPDEFINES': ['WIN32'], |
| 239 'LINKFLAGS': ['/INCREMENTAL:NO', '/NXCOMPAT', '/IGNORE:4221'], | 242 'LINKFLAGS': ['/INCREMENTAL:NO', '/NXCOMPAT', '/IGNORE:4221'], |
| 240 'CCPDBFLAGS': ['/Zi'] | 243 'CCPDBFLAGS': ['/Zi'] |
| 241 }, | 244 }, |
| (...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 697 'snapshot': { | 700 'snapshot': { |
| 698 'values': ['on', 'off', 'nobuild'], | 701 'values': ['on', 'off', 'nobuild'], |
| 699 'default': 'off', | 702 'default': 'off', |
| 700 'help': 'build using snapshots for faster start-up' | 703 'help': 'build using snapshots for faster start-up' |
| 701 }, | 704 }, |
| 702 'prof': { | 705 'prof': { |
| 703 'values': ['on', 'off', 'oprofile'], | 706 'values': ['on', 'off', 'oprofile'], |
| 704 'default': 'off', | 707 'default': 'off', |
| 705 'help': 'enable profiling of build target' | 708 'help': 'enable profiling of build target' |
| 706 }, | 709 }, |
| 710 'gdbjit': { | |
| 711 'values': ['on', 'off'], | |
| 712 'default': 'off', | |
| 713 'help': 'enable GDB JIT interface' | |
| 714 }, | |
| 707 'library': { | 715 'library': { |
| 708 'values': ['static', 'shared'], | 716 'values': ['static', 'shared'], |
| 709 'default': 'static', | 717 'default': 'static', |
| 710 'help': 'the type of library to produce' | 718 'help': 'the type of library to produce' |
| 711 }, | 719 }, |
| 712 'vmstate': { | 720 'vmstate': { |
| 713 'values': ['on', 'off'], | 721 'values': ['on', 'off'], |
| 714 'default': 'off', | 722 'default': 'off', |
| 715 'help': 'enable VM state tracking' | 723 'help': 'enable VM state tracking' |
| 716 }, | 724 }, |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 863 | 871 |
| 864 def VerifyOptions(env): | 872 def VerifyOptions(env): |
| 865 if not IsLegal(env, 'mode', ['debug', 'release']): | 873 if not IsLegal(env, 'mode', ['debug', 'release']): |
| 866 return False | 874 return False |
| 867 if not IsLegal(env, 'sample', ["shell", "process", "lineprocessor"]): | 875 if not IsLegal(env, 'sample', ["shell", "process", "lineprocessor"]): |
| 868 return False | 876 return False |
| 869 if not IsLegal(env, 'regexp', ["native", "interpreted"]): | 877 if not IsLegal(env, 'regexp', ["native", "interpreted"]): |
| 870 return False | 878 return False |
| 871 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on' : | 879 if env['os'] == 'win32' and env['library'] == 'shared' and env['prof'] == 'on' : |
| 872 Abort("Profiling on windows only supported for static library.") | 880 Abort("Profiling on windows only supported for static library.") |
| 881 if env['gdbjit'] == 'on' and (env['os'] != 'linux' or (env['arch'] != 'ia32' a nd env['arch'] != 'x64')): | |
| 882 Abort("GDBJIT interface is supported only for 32-bit Linux target.") | |
|
Erik Corry
2011/01/05 09:00:15
32-bit should perhaps be Intel-compatible?
Vyacheslav Egorov (Chromium)
2011/01/18 16:10:42
Done.
| |
| 873 if env['prof'] == 'oprofile' and env['os'] != 'linux': | 883 if env['prof'] == 'oprofile' and env['os'] != 'linux': |
| 874 Abort("OProfile is only supported on Linux.") | 884 Abort("OProfile is only supported on Linux.") |
| 875 if env['os'] == 'win32' and env['soname'] == 'on': | 885 if env['os'] == 'win32' and env['soname'] == 'on': |
| 876 Abort("Shared Object soname not applicable for Windows.") | 886 Abort("Shared Object soname not applicable for Windows.") |
| 877 if env['soname'] == 'on' and env['library'] == 'static': | 887 if env['soname'] == 'on' and env['library'] == 'static': |
| 878 Abort("Shared Object soname not applicable for static library.") | 888 Abort("Shared Object soname not applicable for static library.") |
| 879 if env['os'] != 'win32' and env['pgo'] != 'off': | 889 if env['os'] != 'win32' and env['pgo'] != 'off': |
| 880 Abort("Profile guided optimization only supported on Windows.") | 890 Abort("Profile guided optimization only supported on Windows.") |
| 881 if env['cache'] and not os.path.isdir(env['cache']): | 891 if env['cache'] and not os.path.isdir(env['cache']): |
| 882 Abort("The specified cache directory does not exist.") | 892 Abort("The specified cache directory does not exist.") |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1156 # version of scons. Also, there's a bug in some revisions that | 1166 # version of scons. Also, there's a bug in some revisions that |
| 1157 # doesn't allow this flag to be set, so we swallow any exceptions. | 1167 # doesn't allow this flag to be set, so we swallow any exceptions. |
| 1158 # Lovely. | 1168 # Lovely. |
| 1159 try: | 1169 try: |
| 1160 SetOption('warn', 'no-deprecated') | 1170 SetOption('warn', 'no-deprecated') |
| 1161 except: | 1171 except: |
| 1162 pass | 1172 pass |
| 1163 | 1173 |
| 1164 | 1174 |
| 1165 Build() | 1175 Build() |
| OLD | NEW |