diff options
author | Jeff Terrace <jterrace@gmail.com> | 2012-01-04 15:41:43 -0500 |
---|---|---|
committer | Jeff Terrace <jterrace@gmail.com> | 2012-01-04 15:41:43 -0500 |
commit | 0e8ad69fb88bb17a72baa0d034c806baa60e164d (patch) | |
tree | bc9828108d8b8939afd799c78cfe313b091738ec /tools/shared.py | |
parent | c82ae679a5ec1fc29e493a8b6f6672500a223772 (diff) |
Set HOST_* variables for cross-compiling
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/shared.py b/tools/shared.py index 294f15ee..54725a98 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -81,7 +81,9 @@ def check_sanity(force=False): # Tools/paths -CLANG=os.path.expanduser(os.path.join(LLVM_ROOT, 'clang++')) +CLANG_CC=os.path.expanduser(os.path.join(LLVM_ROOT, 'clang')) +CLANG_CPP=os.path.expanduser(os.path.join(LLVM_ROOT, 'clang++')) +CLANG=CLANG_CPP LLVM_LINK=os.path.join(LLVM_ROOT, 'llvm-link') LLVM_LD=os.path.join(LLVM_ROOT, 'llvm-ld') LLVM_OPT=os.path.expanduser(os.path.join(LLVM_ROOT, 'opt')) @@ -355,6 +357,10 @@ class Building: env['EMMAKEN_COMPILER'] = Building.COMPILER env['EMSCRIPTEN_TOOLS'] = path_from_root('tools') env['CFLAGS'] = env['EMMAKEN_CFLAGS'] = ' '.join(COMPILER_OPTS + Building.COMPILER_TEST_OPTS) # Normal CFLAGS is ignored by some configure's. + env['HOST_CC'] = CLANG_CC + env['HOST_CXX'] = CLANG_CPP + env['HOST_CFLAGS'] = "-W" #if set to nothing, CFLAGS is used, which we don't want + env['HOST_CXXFLAGS'] = "-W" #if set to nothing, CXXFLAGS is used, which we don't want return env @staticmethod |