aboutsummaryrefslogtreecommitdiff
path: root/scons-tools/llvm.py
diff options
context:
space:
mode:
authorNick Bray <ncbray@chromium.org>2013-08-05 20:08:12 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-08 16:32:32 -0700
commit34229a78e51a3f59818cd1c38c01794d4afe4676 (patch)
treeb83c714f4ce87f6425c3876c529fa7acc6c6e087 /scons-tools/llvm.py
parent30a929e104a5874620a8b048e9e5fd935006fb5b (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 'scons-tools/llvm.py')
-rwxr-xr-xscons-tools/llvm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scons-tools/llvm.py b/scons-tools/llvm.py
index 2dc65dd3..8fecb40a 100755
--- a/scons-tools/llvm.py
+++ b/scons-tools/llvm.py
@@ -24,11 +24,11 @@ def generate(env):
LLVM_LINK='llvm-link')
env['BUILDERS']['LLVMDis'] = Builder(
- action=os.path.join('${LLVM_ROOT}', '$LLVM_DIS') + ' -o=$TARGET $SOURCE')
+ action=os.path.join('${LLVM_ROOT}', '$LLVM_DIS') + ' -o $TARGET $SOURCE')
env['BUILDERS']['LLVMOpt'] = Builder(
- action=os.path.join('${LLVM_ROOT}', '$LLVM_OPT') + ' $LLVM_OPT_FLAGS $LLVM_OPT_PASSES -o=$TARGET $SOURCE')
+ action=os.path.join('${LLVM_ROOT}', '$LLVM_OPT') + ' $LLVM_OPT_FLAGS $LLVM_OPT_PASSES -o $TARGET $SOURCE')
env['BUILDERS']['LLVMLink'] = Builder(
- action=os.path.join('${LLVM_ROOT}', '$LLVM_LINK') + ' -o=$TARGET $SOURCES',
+ action=os.path.join('${LLVM_ROOT}', '$LLVM_LINK') + ' -o $TARGET $SOURCES',
emitter=add_libraries)