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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING', 'ENABLE_HEAP_PROTECTION'], | 120 'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING', 'ENABLE_HEAP_PROTECTION'], |
121 }, | 121 }, |
122 'profilingsupport:on': { | 122 'profilingsupport:on': { |
123 'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING', 'ENABLE_LOGGING_AND_PROFILING' ], | 123 'CPPDEFINES': ['ENABLE_VMSTATE_TRACKING', 'ENABLE_LOGGING_AND_PROFILING' ], |
124 }, | 124 }, |
125 'debuggersupport:on': { | 125 'debuggersupport:on': { |
126 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'], | 126 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT'], |
127 }, | 127 }, |
128 'inspector:on': { | 128 'inspector:on': { |
129 'CPPDEFINES': ['INSPECTOR'], | 129 'CPPDEFINES': ['INSPECTOR'], |
130 }, | |
131 'liveobjectlist:on': { | |
132 'CPPDEFINES': ['ENABLE_DEBUGGER_SUPPORT', 'INSPECTOR', 'LIVE_OBJECT_LIST ', 'OBJECT_PRINT'], | |
Søren Thygesen Gjesse
2011/01/19 09:09:47
Split long line.
Do you want to always enable OBJ
marklam
2011/01/19 09:43:22
Done. Yes, I want it ti always enable INSPECTOR a
| |
130 } | 133 } |
131 }, | 134 }, |
132 'gcc': { | 135 'gcc': { |
133 'all': { | 136 'all': { |
134 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], | 137 'CCFLAGS': ['$DIALECTFLAGS', '$WARNINGFLAGS'], |
135 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], | 138 'CXXFLAGS': ['$CCFLAGS', '-fno-rtti', '-fno-exceptions'], |
136 }, | 139 }, |
137 'visibility:hidden': { | 140 'visibility:hidden': { |
138 # Use visibility=default to disable this. | 141 # Use visibility=default to disable this. |
139 'CXXFLAGS': ['-fvisibility=hidden'] | 142 'CXXFLAGS': ['-fvisibility=hidden'] |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
745 'debuggersupport': { | 748 'debuggersupport': { |
746 'values': ['on', 'off'], | 749 'values': ['on', 'off'], |
747 'default': 'on', | 750 'default': 'on', |
748 'help': 'enable debugging of JavaScript code' | 751 'help': 'enable debugging of JavaScript code' |
749 }, | 752 }, |
750 'inspector': { | 753 'inspector': { |
751 'values': ['on', 'off'], | 754 'values': ['on', 'off'], |
752 'default': 'off', | 755 'default': 'off', |
753 'help': 'enable inspector features' | 756 'help': 'enable inspector features' |
754 }, | 757 }, |
758 'liveobjectlist': { | |
759 'values': ['on', 'off'], | |
760 'default': 'off', | |
761 'help': 'enable live object list features in the debugger' | |
762 }, | |
755 'soname': { | 763 'soname': { |
756 'values': ['on', 'off'], | 764 'values': ['on', 'off'], |
757 'default': 'off', | 765 'default': 'off', |
758 'help': 'turn on setting soname for Linux shared library' | 766 'help': 'turn on setting soname for Linux shared library' |
759 }, | 767 }, |
760 'msvcrt': { | 768 'msvcrt': { |
761 'values': ['static', 'shared'], | 769 'values': ['static', 'shared'], |
762 'default': 'static', | 770 'default': 'static', |
763 'help': 'the type of Microsoft Visual C++ runtime library to use' | 771 'help': 'the type of Microsoft Visual C++ runtime library to use' |
764 }, | 772 }, |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1002 options['profilingsupport'] = 'on' | 1010 options['profilingsupport'] = 'on' |
1003 if os == 'win32' and options['pgo'] != 'off' and options['msvcltcg'] == 'off': | 1011 if os == 'win32' and options['pgo'] != 'off' and options['msvcltcg'] == 'off': |
1004 if 'msvcltcg' in ARGUMENTS: | 1012 if 'msvcltcg' in ARGUMENTS: |
1005 print "Warning: forcing msvcltcg on as it is required for pgo (%s)" % opti ons['pgo'] | 1013 print "Warning: forcing msvcltcg on as it is required for pgo (%s)" % opti ons['pgo'] |
1006 options['msvcltcg'] = 'on' | 1014 options['msvcltcg'] = 'on' |
1007 if options['arch'] == 'mips': | 1015 if options['arch'] == 'mips': |
1008 if ('regexp' in ARGUMENTS) and options['regexp'] == 'native': | 1016 if ('regexp' in ARGUMENTS) and options['regexp'] == 'native': |
1009 # Print a warning if native regexp is specified for mips | 1017 # Print a warning if native regexp is specified for mips |
1010 print "Warning: forcing regexp to interpreted for mips" | 1018 print "Warning: forcing regexp to interpreted for mips" |
1011 options['regexp'] = 'interpreted' | 1019 options['regexp'] = 'interpreted' |
1012 | 1020 |
Søren Thygesen Gjesse
2011/01/19 09:09:47
Maybe add a warning here if liveobjectlist is on a
marklam
2011/01/19 09:43:22
Done.
| |
1013 | 1021 |
1014 def ParseEnvOverrides(arg, imports): | 1022 def ParseEnvOverrides(arg, imports): |
1015 # The environment overrides are in the format NAME0:value0,NAME1:value1,... | 1023 # The environment overrides are in the format NAME0:value0,NAME1:value1,... |
1016 # The environment imports are in the format NAME0,NAME1,... | 1024 # The environment imports are in the format NAME0,NAME1,... |
1017 overrides = {} | 1025 overrides = {} |
1018 for var in imports.split(','): | 1026 for var in imports.split(','): |
1019 if var in os.environ: | 1027 if var in os.environ: |
1020 overrides[var] = os.environ[var] | 1028 overrides[var] = os.environ[var] |
1021 for override in arg.split(','): | 1029 for override in arg.split(','): |
1022 pos = override.find(':') | 1030 pos = override.find(':') |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1176 # version of scons. Also, there's a bug in some revisions that | 1184 # version of scons. Also, there's a bug in some revisions that |
1177 # doesn't allow this flag to be set, so we swallow any exceptions. | 1185 # doesn't allow this flag to be set, so we swallow any exceptions. |
1178 # Lovely. | 1186 # Lovely. |
1179 try: | 1187 try: |
1180 SetOption('warn', 'no-deprecated') | 1188 SetOption('warn', 'no-deprecated') |
1181 except: | 1189 except: |
1182 pass | 1190 pass |
1183 | 1191 |
1184 | 1192 |
1185 Build() | 1193 Build() |
OLD | NEW |