aboutsummaryrefslogtreecommitdiff
path: root/tests/settings.py
blob: 8ce48fa6815b02bf61f7d620c28e5ae0066aa467 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# XXX: Aside from these settings, you should create ~/.emscripten, and fill it with
#      something like this:
#
#            JS_ENGINE=[os.path.expanduser('~/Dev/tracemonkey/js/src/js'), '-m']
#            JS_ENGINE_PARAMS=[]
#

TEMP_DIR='/dev/shm'

LLVM_ROOT=os.path.expanduser('~/Dev/llvm-2.8/cbuild/Release/bin') # Might not need 'Release'
#LLVM_ROOT=os.path.expanduser('~/Dev/llvm-2.7/cbuild/bin') # Might not need 'Release'

CLANG=os.path.expanduser(os.path.join(LLVM_ROOT, 'clang++'))
LLVM_GCC=os.path.expanduser('~/Dev/llvm-gcc-4.2-2.8.source/cbuild/install/bin/llvm-g++')

COMPILERS = {
  'clang': {
    'path': CLANG,
    'quantum_size': 4, # See settings.js
  },
  'llvm_gcc': {
    'path': LLVM_GCC,
    'quantum_size': 4,
  }
}

COMPILER_OPTS = ['-m32'] # Need to build as 32bit arch, for now -
                         # various errors on 64bit compilation

LLVM_DIS=os.path.expanduser(os.path.join(LLVM_ROOT, 'llvm-dis'))
LLVM_DIS_OPTS = []
if '2.8' in LLVM_ROOT:
  LLVM_DIS_OPTS += ['-show-annotations']

SPIDERMONKEY_ENGINE = [os.path.expanduser('~/Dev/tracemonkey/js/src/js'), '-m'] # No |-j| due to Mozilla bug XXX
V8_ENGINE = [os.path.expanduser('~/Dev/v8/d8')]

# XXX Warning: Compiling the 'cubescript' test in SpiderMonkey can lead to an extreme amount of memory being
#              used, see Mozilla bug 593659. Possibly also some other tests as well.
#COMPILER_ENGINE=SPIDERMONKEY_ENGINE
COMPILER_ENGINE=V8_ENGINE

OUTPUT_TO_SCREEN = 0 # useful for debugging specific tests, or for subjectively seeing what parts are slow

TIMEOUT = None

# Tools

CLOSURE_COMPILER = os.path.expanduser('~/Dev/closure-compiler/compiler.jar')
DEMANGLER = path_from_root(['third_party', 'demangler.py'])
NAMESPACER = path_from_root(['tools', 'namespacer.py'])