summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-02-17 09:14:01 +0000
committerAlexey Samsonov <samsonov@google.com>2014-02-17 09:14:01 +0000
commit41bf92d3368b803bf1c96eb1e75bdfbde8d98d57 (patch)
tree69d76867abcc23e66ddb0b4fcf2cdd3f6370a84a /make
parent4b9d87507cae5b6fedff5f455483d24980d19e3c (diff)
[compiler-rt] Fix CompilerTargetTriple for non-English locales.
When the locale of a shell is set other than English locales or the C locale, The word 'Target' may be translated. Thus, with e.g. ja_JP locale, compiler-rt couldn't be built properly. Forcing LANG=C fixes the problem. Patch by Ogino Masanori. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make')
-rw-r--r--make/platform/clang_linux.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/make/platform/clang_linux.mk b/make/platform/clang_linux.mk
index fe39a2d73..78f9e3afb 100644
--- a/make/platform/clang_linux.mk
+++ b/make/platform/clang_linux.mk
@@ -11,7 +11,7 @@ Configs :=
# cross compilers). For now, we just find the target architecture of the
# compiler and only define configurations we know that compiler can generate.
CompilerTargetTriple := $(shell \
- $(CC) -v 2>&1 | grep 'Target:' | cut -d' ' -f2)
+ LANG=C $(CC) -v 2>&1 | grep 'Target:' | cut -d' ' -f2)
ifeq ($(CompilerTargetTriple),)
$(error "unable to infer compiler target triple for $(CC)")
endif