Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: SConstruct

Issue 8763: Change the test status file parser to fail if the line contains unparsed toke... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | test/cctest/testcfg.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 'release': '', 231 'release': '',
232 'debug': '_g' 232 'debug': '_g'
233 } 233 }
234 234
235 235
236 def Abort(message): 236 def Abort(message):
237 print message 237 print message
238 sys.exit(1) 238 sys.exit(1)
239 239
240 240
241 def GuessOS():
242 id = platform.system()
243 if id == 'Linux':
244 return 'linux'
245 elif id == 'Darwin':
246 return 'macos'
247 elif id == 'Windows':
248 return 'win32'
249 else:
250 return None
251
252
253 def GuessWordsize():
254 if '64' in platform.machine():
255 return '64'
256 else:
257 return '32'
258
259
260 def GuessToolchain(os): 241 def GuessToolchain(os):
261 tools = Environment()['TOOLS'] 242 tools = Environment()['TOOLS']
262 if 'gcc' in tools: 243 if 'gcc' in tools:
263 return 'gcc' 244 return 'gcc'
264 elif 'msvc' in tools: 245 elif 'msvc' in tools:
265 return 'msvc' 246 return 'msvc'
266 else: 247 else:
267 return None 248 return None
268 249
269 250
270 OS_GUESS = GuessOS() 251 OS_GUESS = utils.GuessOS()
271 TOOLCHAIN_GUESS = GuessToolchain(OS_GUESS) 252 TOOLCHAIN_GUESS = GuessToolchain(OS_GUESS)
272 ARCH_GUESS = utils.GuessArchitecture() 253 ARCH_GUESS = utils.GuessArchitecture()
273 WORDSIZE_GUESS = GuessWordsize() 254 WORDSIZE_GUESS = utils.GuessWordsize()
274 255
275 256
276 SIMPLE_OPTIONS = { 257 SIMPLE_OPTIONS = {
277 'toolchain': { 258 'toolchain': {
278 'values': ['gcc', 'msvc'], 259 'values': ['gcc', 'msvc'],
279 'default': TOOLCHAIN_GUESS, 260 'default': TOOLCHAIN_GUESS,
280 'help': 'the toolchain to use' 261 'help': 'the toolchain to use'
281 }, 262 },
282 'os': { 263 'os': {
283 'values': ['linux', 'macos', 'win32'], 264 'values': ['linux', 'macos', 'win32'],
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 # version of scons. Also, there's a bug in some revisions that 550 # version of scons. Also, there's a bug in some revisions that
570 # doesn't allow this flag to be set, so we swallow any exceptions. 551 # doesn't allow this flag to be set, so we swallow any exceptions.
571 # Lovely. 552 # Lovely.
572 try: 553 try:
573 SetOption('warn', 'no-deprecated') 554 SetOption('warn', 'no-deprecated')
574 except: 555 except:
575 pass 556 pass
576 557
577 558
578 Build() 559 Build()
OLDNEW
« no previous file with comments | « no previous file | test/cctest/testcfg.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698