Skip to content

Commit 08fd4f4

Browse files
committed
use only LLVM_ROOT in fastcomp invocations
1 parent 6751ffa commit 08fd4f4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

emscripten.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -742,32 +742,32 @@ def emscript_fast(infile, settings, outfile, libraries=[], compiler_engine=None,
742742

743743
if DEBUG: logging.debug(' ..1..')
744744
temp1 = temp_files.get('.1.bc').name
745-
shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT, 'opt'), infile, '-pnacl-abi-simplify-preopt', '-o', temp1]))
745+
shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.LLVM_ROOT, 'opt'), infile, '-pnacl-abi-simplify-preopt', '-o', temp1]))
746746
assert os.path.exists(temp1)
747747
if DEBUG:
748748
shutil.copyfile(temp1, os.path.join(shared.CANONICAL_TEMP_DIR, 'temp1.bc'))
749-
shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT, 'llvm-dis'), 'temp1.bc', '-o', 'temp1.ll']))
749+
shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.LLVM_ROOT, 'llvm-dis'), 'temp1.bc', '-o', 'temp1.ll']))
750750

751751
#if DEBUG: logging.debug(' ..2..')
752752
#temp2 = temp_files.get('.2.bc').name
753-
#shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT, 'opt'), temp1, '-O3', '-o', temp2]))
753+
#shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.LLVM_ROOT, 'opt'), temp1, '-O3', '-o', temp2]))
754754
#assert os.path.exists(temp2)
755755
#if DEBUG:
756756
# shutil.copyfile(temp2, os.path.join(shared.CANONICAL_TEMP_DIR, 'temp2.bc'))
757-
# shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT, 'llvm-dis'), 'temp2.bc', '-o', 'temp2.ll']))
757+
# shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.LLVM_ROOT, 'llvm-dis'), 'temp2.bc', '-o', 'temp2.ll']))
758758
temp2 = temp1 # XXX if we optimize the bc, we remove some pnacl clutter, but it also makes varargs stores be 8-byte aligned
759759

760760
if DEBUG: logging.debug(' ..3..')
761761
temp3 = temp_files.get('.3.bc').name
762-
shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT, 'opt'), temp2, '-pnacl-abi-simplify-postopt', '-o', temp3]))
762+
shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.LLVM_ROOT, 'opt'), temp2, '-pnacl-abi-simplify-postopt', '-o', temp3]))
763763
assert os.path.exists(temp3)
764764
if DEBUG:
765765
shutil.copyfile(temp3, os.path.join(shared.CANONICAL_TEMP_DIR, 'temp3.bc'))
766-
shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.PNACL_ROOT, 'llvm-dis'), 'temp3.bc', '-o', 'temp3.ll']))
766+
shared.jsrun.timeout_run(subprocess.Popen([os.path.join(shared.LLVM_ROOT, 'llvm-dis'), 'temp3.bc', '-o', 'temp3.ll']))
767767

768768
if DEBUG: logging.debug(' ..4..')
769769
temp4 = temp_files.get('.4.js').name
770-
backend_compiler = os.path.join(shared.PNACL_ROOT, 'llc')
770+
backend_compiler = os.path.join(shared.LLVM_ROOT, 'llc')
771771
shared.jsrun.timeout_run(subprocess.Popen([backend_compiler, temp3, '-march=js', '-filetype=asm', '-o', temp4], stdout=subprocess.PIPE))
772772
if DEBUG: shutil.copyfile(temp4, os.path.join(shared.CANONICAL_TEMP_DIR, 'temp4.js'))
773773

0 commit comments

Comments
 (0)