]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/waterfall/src/emscripten_config_vanilla
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / waterfall / src / emscripten_config_vanilla
1
2 # Note: If you put paths relative to the home directory, do not forget os.path.expanduser
3
4 # Note: On Windows, remember to escape backslashes! I.e. EMSCRIPTEN_ROOT='c:\emscripten\' is not valid, but EMSCRIPTEN_ROOT='c:\\emscripten\\' and EMSCRIPTEN_ROOT='c:/emscripten/' are.
5
6 import os
7
8 # This file is loaded from emscripten/tools/shared.py. There seems to be no
9 # reasonable way to get a hermetic relocatable setup, other than some kind of
10 # hack like this.
11 WASM_INSTALL = os.path.dirname(
12 os.path.dirname(
13 os.path.dirname(
14 os.path.dirname(__file__))))
15
16 # this helps projects using emscripten find it
17 EMSCRIPTEN_ROOT = os.path.join(WASM_INSTALL, 'bin', 'emscripten') # directory
18 LLVM_ROOT = os.path.join(WASM_INSTALL, 'bin') # directory
19 BINARYEN_ROOT = os.path.join(WASM_INSTALL) # directory
20
21 # If not specified, defaults to sys.executable.
22 #PYTHON = 'python'
23
24 # Add this if you have manually built the JS optimizer executable (in Emscripten/tools/optimizer) and want to run it from a custom location.
25 # Alternatively, you can set this as the environment variable EMSCRIPTEN_NATIVE_OPTIMIZER.
26 # EMSCRIPTEN_NATIVE_OPTIMIZER='/path/to/custom/optimizer(.exe)'
27
28 # See below for notes on which JS engine(s) you need
29 NODE_JS = os.path.expanduser(os.getenv('NODE') or '/usr/bin/nodejs') # executable
30 SPIDERMONKEY_ENGINE = [os.path.expanduser(os.getenv('SPIDERMONKEY') or 'js')] # executable
31 V8_ENGINE = os.path.join(WASM_INSTALL, 'bin', 'd8') # executable
32
33 JAVA = 'java' # executable
34
35 TEMP_DIR = '/tmp'
36
37 CRUNCH = os.path.expanduser(os.getenv('CRUNCH') or 'crunch') # executable
38
39 #CLOSURE_COMPILER = '..' # define this to not use the bundled version
40
41 ########################################################################################################
42
43
44 # Pick the JS engine to use for running the compiler. This engine must exist, or
45 # nothing can be compiled.
46 #
47 # Recommendation: If you already have node installed, use that. Otherwise, build v8 or
48 # spidermonkey from source. Any of these three is fine, as long as it's
49 # a recent version (especially for v8 and spidermonkey).
50
51 #COMPILER_ENGINE = NODE_JS
52 COMPILER_ENGINE = V8_ENGINE
53 #COMPILER_ENGINE = SPIDERMONKEY_ENGINE
54
55
56 # All JS engines to use when running the automatic tests. Not all the engines in this list
57 # must exist (if they don't, they will be skipped in the test runner).
58 #
59 # Recommendation: If you already have node installed, use that. If you can, also build
60 # spidermonkey from source as well to get more test coverage (node can't
61 # run all the tests due to node issue 1669). v8 is currently not recommended
62 # here because of v8 issue 1822.
63
64 JS_ENGINES = [V8_ENGINE] # add this if you have spidermonkey installed too, SPIDERMONKEY_ENGINE]