def get_freealut_library(self): if WINDOWS and Building.which('cmake'): return self.get_library('freealut', os.path.join('hello_world.bc'), configure=['cmake', '.'], configure_args=['-DBUILD_TESTS=ON']) else: return self.get_library('freealut', [ os.path.join('examples', '.libs', 'hello_world.bc'), os.path.join('src', '.libs', 'libalut.a') ], make_args=['EXEEXT=.bc'])
'returncode': proc.returncode, 'dir': temp_dir, 'files': contents } return {'returncode': 1, 'dir': None, 'files': []} # Benchmarkers try: benchmarkers_error = '' benchmarkers = [ NativeBenchmarker('clang', CLANG_CC, CLANG), # NativeBenchmarker('gcc', 'gcc', 'g++') ] if SPIDERMONKEY_ENGINE and Building.which(SPIDERMONKEY_ENGINE[0]): benchmarkers += [ EmscriptenBenchmarker('sm-asmjs', SPIDERMONKEY_ENGINE, ['-s', 'PRECISE_F32=2', '-s', 'WASM=0']), EmscriptenBenchmarker('sm-asm2wasm', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], []), # EmscriptenBenchmarker('sm-asm2wasm-lto', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], ['--llvm-lto', '1']), # EmscriptenBenchmarker('sm-wasmbackend', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], [env={ # 'LLVM': '/home/alon/Dev/llvm/build/bin', # 'EMCC_WASM_BACKEND': '1', # }), ] if V8_ENGINE and Building.which(V8_ENGINE[0]): benchmarkers += [ EmscriptenBenchmarker('v8-wasm', V8_ENGINE),
return { 'returncode': 1, 'dir': None, 'files': [] } # Benchmarkers try: benchmarkers_error = '' benchmarkers = [ NativeBenchmarker('clang', CLANG_CC, CLANG), # NativeBenchmarker('gcc', 'gcc', 'g++') ] if SPIDERMONKEY_ENGINE and Building.which(SPIDERMONKEY_ENGINE[0]): benchmarkers += [ EmscriptenBenchmarker('sm-asmjs', SPIDERMONKEY_ENGINE, ['-s', 'PRECISE_F32=2', '-s', 'WASM=0']), EmscriptenBenchmarker('sm-asm2wasm', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], []), # EmscriptenBenchmarker('sm-asm2wasm-lto', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], ['--llvm-lto', '1']), # EmscriptenBenchmarker('sm-wasmbackend', SPIDERMONKEY_ENGINE + ['--no-wasm-baseline'], [env={ # 'LLVM': '/home/alon/Dev/llvm/build/bin', # 'EMCC_WASM_BACKEND': '1', # }), ] if V8_ENGINE and Building.which(V8_ENGINE[0]): benchmarkers += [ EmscriptenBenchmarker('v8-wasm', V8_ENGINE), ] if os.path.exists(CHEERP_BIN): benchmarkers += [
def get_freealut_library(self): if WINDOWS and Building.which('cmake'): return self.get_library('freealut', os.path.join('hello_world.bc'), configure=['cmake', '.'], configure_args=['-DBUILD_TESTS=ON']) else: return self.get_library('freealut', [os.path.join('examples', '.libs', 'hello_world.bc'), os.path.join('src', '.libs', 'libalut.a')], make_args=['EXEEXT=.bc'])