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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 }, | 60 }, |
61 'mode:debug': { | 61 'mode:debug': { |
62 'CPPDEFINES': ['V8_ENABLE_CHECKS', 'OBJECT_PRINT', 'VERIFY_HEAP'] | 62 'CPPDEFINES': ['V8_ENABLE_CHECKS', 'OBJECT_PRINT', 'VERIFY_HEAP'] |
63 }, | 63 }, |
64 'objectprint:on': { | 64 'objectprint:on': { |
65 'CPPDEFINES': ['OBJECT_PRINT'], | 65 'CPPDEFINES': ['OBJECT_PRINT'], |
66 }, | 66 }, |
67 'debuggersupport:on': { | 67 'debuggersupport:on': { |
68 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'], | 68 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'], |
69 }, | 69 }, |
70 'inspector:on': { | |
71 'CPPDEFINES': ['INSPECTOR'], | |
72 }, | |
73 'fasttls:off': { | 70 'fasttls:off': { |
74 'CPPDEFINES': ['V8_NO_FAST_TLS'], | 71 'CPPDEFINES': ['V8_NO_FAST_TLS'], |
75 }, | 72 }, |
76 'liveobjectlist:on': { | |
77 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT', 'INSPECTOR', | |
78 'LIVE_OBJECT_LIST', 'OBJECT_PRINT'], | |
79 } | |
80 }, | 73 }, |
81 'gcc': { | 74 'gcc': { |
82 'all': { | 75 'all': { |
83 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 76 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
84 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], | 77 'CXXFLAGS': ['-fno-rtti', '-fno-exceptions'], |
85 }, | 78 }, |
86 'visibility:hidden': { | 79 'visibility:hidden': { |
87 # Use visibility=default to disable this. | 80 # Use visibility=default to disable this. |
88 'CXXFLAGS': ['-fvisibility=hidden'] | 81 'CXXFLAGS': ['-fvisibility=hidden'] |
89 }, | 82 }, |
(...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 'profilingsupport': { | 1037 'profilingsupport': { |
1045 'values': ['on', 'off'], | 1038 'values': ['on', 'off'], |
1046 'default': 'on', | 1039 'default': 'on', |
1047 'help': 'enable profiling of JavaScript code' | 1040 'help': 'enable profiling of JavaScript code' |
1048 }, | 1041 }, |
1049 'debuggersupport': { | 1042 'debuggersupport': { |
1050 'values': ['on', 'off'], | 1043 'values': ['on', 'off'], |
1051 'default': 'on', | 1044 'default': 'on', |
1052 'help': 'enable debugging of JavaScript code' | 1045 'help': 'enable debugging of JavaScript code' |
1053 }, | 1046 }, |
1054 'inspector': { | |
1055 'values': ['on', 'off'], | |
1056 'default': 'off', | |
1057 'help': 'enable inspector features' | |
1058 }, | |
1059 'liveobjectlist': { | |
1060 'values': ['on', 'off'], | |
1061 'default': 'off', | |
1062 'help': 'enable live object list features in the debugger' | |
1063 }, | |
1064 'soname': { | 1047 'soname': { |
1065 'values': ['on', 'off'], | 1048 'values': ['on', 'off'], |
1066 'default': 'off', | 1049 'default': 'off', |
1067 'help': 'turn on setting soname for Linux shared library' | 1050 'help': 'turn on setting soname for Linux shared library' |
1068 }, | 1051 }, |
1069 'msvcrt': { | 1052 'msvcrt': { |
1070 'values': ['static', 'shared'], | 1053 'values': ['static', 'shared'], |
1071 'default': 'static', | 1054 'default': 'static', |
1072 'help': 'the type of Microsoft Visual C++ runtime library to use' | 1055 'help': 'the type of Microsoft Visual C++ runtime library to use' |
1073 }, | 1056 }, |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1411 if (options['prof'] != 'off') and (options['profilingsupport'] == 'off'): | 1394 if (options['prof'] != 'off') and (options['profilingsupport'] == 'off'): |
1412 # Print a warning if profiling is enabled without profiling support | 1395 # Print a warning if profiling is enabled without profiling support |
1413 print "Warning: forcing profilingsupport on when prof is on" | 1396 print "Warning: forcing profilingsupport on when prof is on" |
1414 options['profilingsupport'] = 'on' | 1397 options['profilingsupport'] = 'on' |
1415 if os == 'win32' and options['pgo'] != 'off' and options['msvcltcg'] == 'off': | 1398 if os == 'win32' and options['pgo'] != 'off' and options['msvcltcg'] == 'off': |
1416 if 'msvcltcg' in ARGUMENTS: | 1399 if 'msvcltcg' in ARGUMENTS: |
1417 print "Warning: forcing msvcltcg on as it is required for pgo (%s)" % opti
ons['pgo'] | 1400 print "Warning: forcing msvcltcg on as it is required for pgo (%s)" % opti
ons['pgo'] |
1418 options['msvcltcg'] = 'on' | 1401 options['msvcltcg'] = 'on' |
1419 if (options['mipsabi'] != 'none') and (options['arch'] != 'mips') and (options
['simulator'] != 'mips'): | 1402 if (options['mipsabi'] != 'none') and (options['arch'] != 'mips') and (options
['simulator'] != 'mips'): |
1420 options['mipsabi'] = 'none' | 1403 options['mipsabi'] = 'none' |
1421 if options['liveobjectlist'] == 'on': | |
1422 if (options['debuggersupport'] != 'on') or (options['mode'] == 'release'): | |
1423 # Print a warning that liveobjectlist will implicitly enable the debugger | |
1424 print "Warning: forcing debuggersupport on for liveobjectlist" | |
1425 options['debuggersupport'] = 'on' | |
1426 options['inspector'] = 'on' | |
1427 options['objectprint'] = 'on' | |
1428 | 1404 |
1429 | 1405 |
1430 def ParseEnvOverrides(arg, imports): | 1406 def ParseEnvOverrides(arg, imports): |
1431 # The environment overrides are in the format NAME0:value0,NAME1:value1,... | 1407 # The environment overrides are in the format NAME0:value0,NAME1:value1,... |
1432 # The environment imports are in the format NAME0,NAME1,... | 1408 # The environment imports are in the format NAME0,NAME1,... |
1433 overrides = {} | 1409 overrides = {} |
1434 for var in imports.split(','): | 1410 for var in imports.split(','): |
1435 if var in os.environ: | 1411 if var in os.environ: |
1436 overrides[var] = os.environ[var] | 1412 overrides[var] = os.environ[var] |
1437 for override in arg.split(','): | 1413 for override in arg.split(','): |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1627 # env.Copy without getting warnings for compatibility with older | 1603 # env.Copy without getting warnings for compatibility with older |
1628 # version of scons. Also, there's a bug in some revisions that | 1604 # version of scons. Also, there's a bug in some revisions that |
1629 # doesn't allow this flag to be set, so we swallow any exceptions. | 1605 # doesn't allow this flag to be set, so we swallow any exceptions. |
1630 # Lovely. | 1606 # Lovely. |
1631 try: | 1607 try: |
1632 SetOption('warn', 'no-deprecated') | 1608 SetOption('warn', 'no-deprecated') |
1633 except: | 1609 except: |
1634 pass | 1610 pass |
1635 | 1611 |
1636 Build() | 1612 Build() |
OLD | NEW |