aboutsummaryrefslogtreecommitdiff
path: root/scons-tools
diff options
context:
space:
mode:
authorJukka Jylanki <jjylanki@imvu.com>2013-05-27 13:01:23 +0300
committerChad Austin <chad@imvu.com>2013-07-17 15:01:01 -0700
commit7f0731a0b13c77a041dfc385d37c7ec509e23b9e (patch)
tree098a933dbcd72135950ddd83655507dfb987cd26 /scons-tools
parent4495037526c02db467952c3ff73866e8a212b752 (diff)
Fix scons tools to use os.path.join so that windows paths don't have an exectutable name 'dir1\dir2\dir3/clang', which fails.
Diffstat (limited to 'scons-tools')
-rwxr-xr-xscons-tools/emscripten.py6
-rwxr-xr-xscons-tools/llvm.py7
2 files changed, 7 insertions, 6 deletions
diff --git a/scons-tools/emscripten.py b/scons-tools/emscripten.py
index 473c51ad..da18b3bd 100755
--- a/scons-tools/emscripten.py
+++ b/scons-tools/emscripten.py
@@ -265,9 +265,9 @@ def generate(env):
)
env.Replace(
- CC='${LLVM_ROOT}/${CLANG}',
- CXX='${LLVM_ROOT}/${CLANGXX}',
- AR='${LLVM_ROOT}/${LLVM_LINK}',
+ CC=os.path.join('${LLVM_ROOT}', '${CLANG}'),
+ CXX=os.path.join('${LLVM_ROOT}', '${CLANGXX}'),
+ AR=os.path.join('${LLVM_ROOT}', '${LLVM_LINK}'),
ARCOM='$AR -o $TARGET $SOURCES',
OBJSUFFIX='.bc',
LIBPREFIX='',
diff --git a/scons-tools/llvm.py b/scons-tools/llvm.py
index f272bd16..2dc65dd3 100755
--- a/scons-tools/llvm.py
+++ b/scons-tools/llvm.py
@@ -1,5 +1,6 @@
from SCons.Scanner.Prog import scan
from SCons.Builder import Builder
+import os
def exists(env):
return True
@@ -23,11 +24,11 @@ def generate(env):
LLVM_LINK='llvm-link')
env['BUILDERS']['LLVMDis'] = Builder(
- action='${LLVM_ROOT}/$LLVM_DIS -o=$TARGET $SOURCE')
+ action=os.path.join('${LLVM_ROOT}', '$LLVM_DIS') + ' -o=$TARGET $SOURCE')
env['BUILDERS']['LLVMOpt'] = Builder(
- action='${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='${LLVM_ROOT}/$LLVM_LINK -o=$TARGET $SOURCES',
+ action=os.path.join('${LLVM_ROOT}', '$LLVM_LINK') + ' -o=$TARGET $SOURCES',
emitter=add_libraries)