diff options
author | Nick Bray <ncbray@chromium.org> | 2013-08-05 20:08:12 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-08-08 16:32:32 -0700 |
commit | 34229a78e51a3f59818cd1c38c01794d4afe4676 (patch) | |
tree | b83c714f4ce87f6425c3876c529fa7acc6c6e087 /tools/exec_llvm.py | |
parent | 30a929e104a5874620a8b048e9e5fd935006fb5b (diff) |
Allow the PNaCl toolchain to be used in place of a standard version of Clang.
The main differences between PNaCl and standard Clang are that the tools are
prefixed with "pnacl-" instead of "llvm-" and PNaCl does not accept "-o=file"
style arguments, and requires them to be specified as "-o file".
Diffstat (limited to 'tools/exec_llvm.py')
-rwxr-xr-x | tools/exec_llvm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/exec_llvm.py b/tools/exec_llvm.py index 2685f9e4..ec7a8924 100755 --- a/tools/exec_llvm.py +++ b/tools/exec_llvm.py @@ -39,12 +39,12 @@ def path_from_root(*pathelems): sys.path += [path_from_root('')] from tools.shared import * -Popen([LLVM_OPT, sys.argv[1], '-strip-debug', '-o=' + sys.argv[1]+'.clean.bc']).communicate()[0] +Popen([LLVM_OPT, sys.argv[1], '-strip-debug', '-o', sys.argv[1]+'.clean.bc']).communicate()[0] # Execute with empty environment - just like the JS script will have Popen([LLVM_INTERPRETER, sys.argv[1]+'.clean.bc'] + sys.argv[2:], env={'HOME': '.'}).communicate()[0] -#Popen([LLVM_COMPILER, '-march=c', sys.argv[1], '-o=' + sys.argv[1]+'.cbe.c']).communicate()[0] +#Popen([LLVM_COMPILER, '-march=c', sys.argv[1], '-o', sys.argv[1]+'.cbe.c']).communicate()[0] #Popen(['gcc', sys.argv[1]+'.cbe.c', '-lstdc++']).communicate()[0] #Popen(['./a.out'] + sys.argv[2:]).communicate()[0] |