@@ -90,7 +90,8 @@ def __init__(self, name, engine, extra_args=[], env={}):
90
90
91
91
def build (self , parent , filename , args , shared_args , emcc_args , native_args , native_exec , lib_builder ):
92
92
self .filename = filename
93
- if lib_builder : emcc_args = emcc_args + lib_builder ('js' , native = False , env_init = {})
93
+ llvm_root = self .env .get ('LLVM' ) or LLVM_ROOT
94
+ if lib_builder : emcc_args = emcc_args + lib_builder ('js_' + llvm_root , native = False , env_init = self .env )
94
95
95
96
open ('hardcode.py' , 'w' ).write ('''
96
97
def process(filename):
@@ -120,10 +121,16 @@ def run(self, args):
120
121
121
122
# Benchmarkers
122
123
benchmarkers = [
123
- NativeBenchmarker ('clang' , CLANG_CC , CLANG ),
124
+ #NativeBenchmarker('clang', CLANG_CC, CLANG),
125
+ #NativeBenchmarker('clang-3.2', os.path.join(LLVM_3_2, 'clang'), os.path.join(LLVM_3_2, 'clang++')),
126
+ #NativeBenchmarker('clang-3.3', os.path.join(LLVM_3_3, 'clang'), os.path.join(LLVM_3_3, 'clang++')),
127
+ #NativeBenchmarker('clang-3.4', os.path.join(LLVM_3_4, 'clang'), os.path.join(LLVM_3_4, 'clang++')),
124
128
#NativeBenchmarker('gcc', 'gcc', 'g++'),
125
129
#JSBenchmarker('sm-f32', SPIDERMONKEY_ENGINE, ['-s', 'PRECISE_F32=2']),
126
- JSBenchmarker ('sm' , SPIDERMONKEY_ENGINE ),
130
+ JSBenchmarker ('sm-f32-3.2' , SPIDERMONKEY_ENGINE , ['-s' , 'PRECISE_F32=2' ], env = { 'LLVM' : LLVM_3_2 }),
131
+ JSBenchmarker ('sm-f32-3.3' , SPIDERMONKEY_ENGINE , ['-s' , 'PRECISE_F32=2' ], env = { 'LLVM' : LLVM_3_3 }),
132
+ JSBenchmarker ('sm-f32-3.4' , SPIDERMONKEY_ENGINE , ['-s' , 'PRECISE_F32=2' ], env = { 'LLVM' : LLVM_3_4 }),
133
+ #JSBenchmarker('sm', SPIDERMONKEY_ENGINE),
127
134
#JSBenchmarker('sm-fc', SPIDERMONKEY_ENGINE, env={ 'EMCC_FAST_COMPILER': '1' }),
128
135
#JSBenchmarker('sm-noasm', SPIDERMONKEY_ENGINE + ['--no-asmjs']),
129
136
#JSBenchmarker('sm-noasm-f32', SPIDERMONKEY_ENGINE + ['--no-asmjs'], ['-s', 'PRECISE_F32=2']),
0 commit comments