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

Side by Side Diff: tools/toolchain_tester/toolchain_config.py

Issue 1698523003: Subzero: Add x86-64 to the bots. (Closed) Base URL: https://chromium.googlesource.com/native_client/src/native_client.git@master
Patch Set: Disable Subzero x86-64 translator tests for now Created 4 years, 10 months 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
« no previous file with comments | « tests/spec2k/run_all.sh ('k') | tools/toolchain_tester/torture_test.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 (c) 2011 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # 5 #
6 # Config file for various nacl compilation scenarios 6 # Config file for various nacl compilation scenarios
7 # 7 #
8 import os 8 import os
9 import sys 9 import sys
10 10
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 attributes=['x86-64', 'O3f', 'O0b'], 401 attributes=['x86-64', 'O3f', 'O0b'],
402 TRANSLATE_FLAGS = '-translate-fast') 402 TRANSLATE_FLAGS = '-translate-fast')
403 403
404 # Based on llvm_pnacl_x86-64_O0 with TRANSLATE_FLAGS=-translate-fast 404 # Based on llvm_pnacl_x86-64_O0 with TRANSLATE_FLAGS=-translate-fast
405 TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O0_O0'] = ToolchainConfig( 405 TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O0_O0'] = ToolchainConfig(
406 base=TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O0'], 406 base=TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O0'],
407 desc='pnacl llvm [x8664]', 407 desc='pnacl llvm [x8664]',
408 attributes=['x86-64', 'O0f', 'O0b'], 408 attributes=['x86-64', 'O0f', 'O0b'],
409 TRANSLATE_FLAGS = '-translate-fast') 409 TRANSLATE_FLAGS = '-translate-fast')
410 410
411 # Based on llvm_pnacl_x86-64_O0 with TRANSLATE_FLAGS+=--use-sz
412 TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O0_sz'] = ToolchainConfig(
413 base=TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O0'],
414 desc='pnacl llvm with Subzero [x8664]',
415 attributes=['x86-64', 'O0f', 'O2b_sz'],
416 TRANSLATE_FLAGS = '--use-sz')
417
418 # Based on llvm_pnacl_x86-64_O3 with TRANSLATE_FLAGS+=--use-sz
419 TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O3_sz'] = ToolchainConfig(
420 base=TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O3'],
421 desc='pnacl llvm with Subzero [x8664]',
422 attributes=['x86-64', 'O3f', 'O2b_sz'],
423 TRANSLATE_FLAGS = '--use-sz')
424
425 # Based on llvm_pnacl_x86-64_O3_O0 with TRANSLATE_FLAGS+=--use-sz
426 TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O3_O0_sz'] = ToolchainConfig(
427 base=TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O3_O0'],
428 desc='pnacl llvm with Subzero -Om1 [x8664]',
429 attributes=['x86-64', 'O3f', 'O0b_sz'],
430 TRANSLATE_FLAGS = '-translate-fast --use-sz')
431
432 # Based on llvm_pnacl_x86-64_O0_O0 with TRANSLATE_FLAGS+=--use-sz
433 TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O0_O0_sz'] = ToolchainConfig(
434 base=TOOLCHAIN_CONFIGS['llvm_pnacl_x86-64_O0_O0'],
435 desc='pnacl llvm with Subzero -Om1 [x8664]',
436 attributes=['x86-64', 'O0f', 'O0b_sz'],
437 TRANSLATE_FLAGS = '-translate-fast --use-sz')
438
411 ###################################################################### 439 ######################################################################
412 # CLANG + SEL_LDR 440 # CLANG + SEL_LDR
413 ###################################################################### 441 ######################################################################
414 442
415 def NaClClangCommands(arch): 443 def NaClClangCommands(arch):
416 commands = [ 444 commands = [
417 ('compile', 445 ('compile',
418 '%(CC)s %(src)s %(CFLAGS)s -o %(tmp)s.nexe -lm', 446 '%(CC)s %(src)s %(CFLAGS)s -o %(tmp)s.nexe -lm',
419 ), 447 ),
420 ] 448 ]
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 base=TOOLCHAIN_CONFIGS['nacl_clang_%s_O0' % arch], 516 base=TOOLCHAIN_CONFIGS['nacl_clang_%s_O0' % arch],
489 desc='clang [%s O3]' % arch, 517 desc='clang [%s O3]' % arch,
490 attributes=[arch, 'O3'], 518 attributes=[arch, 'O3'],
491 CFLAGS = '-O3 ' + CLANG_CFLAGS + ' ' + GLOBAL_CFLAGS) 519 CFLAGS = '-O3 ' + CLANG_CFLAGS + ' ' + GLOBAL_CFLAGS)
492 520
493 TOOLCHAIN_CONFIGS['nacl_clang++_%s_O3' % arch] = ToolchainConfig( 521 TOOLCHAIN_CONFIGS['nacl_clang++_%s_O3' % arch] = ToolchainConfig(
494 base=TOOLCHAIN_CONFIGS['nacl_clang_%s_O3' % arch], 522 base=TOOLCHAIN_CONFIGS['nacl_clang_%s_O3' % arch],
495 desc='clang++ [%s O3]' % arch, 523 desc='clang++ [%s O3]' % arch,
496 attributes=[arch, 'O3'], 524 attributes=[arch, 'O3'],
497 CC = NaClClang(arch, cpp=True)) 525 CC = NaClClang(arch, cpp=True))
OLDNEW
« no previous file with comments | « tests/spec2k/run_all.sh ('k') | tools/toolchain_tester/torture_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698