force english in ld gold call

This commit is contained in:
Sylvestre Ledru 2016-11-11 17:57:36 +00:00
commit 56ad6c2826
2 changed files with 14 additions and 0 deletions

13
debian/patches/lit-force-lang.diff vendored Normal file
View File

@ -0,0 +1,13 @@
Index: llvm-toolchain-3.8-3.8.1/projects/compiler-rt/test/lit.common.cfg
===================================================================
--- llvm-toolchain-3.8-3.8.1.orig/projects/compiler-rt/test/lit.common.cfg
+++ llvm-toolchain-3.8-3.8.1/projects/compiler-rt/test/lit.common.cfg
@@ -120,7 +120,7 @@ def is_linux_lto_supported():
if not os.path.exists(os.path.join(config.llvm_shlib_dir, 'LLVMgold.so')):
return False
- ld_cmd = subprocess.Popen([config.gold_executable, '--help'], stdout = subprocess.PIPE)
+ ld_cmd = subprocess.Popen([config.gold_executable, '--help'], stdout = subprocess.PIPE, env={'LANG': 'C'})
ld_out = ld_cmd.stdout.read().decode()
ld_cmd.wait()

View File

@ -43,3 +43,4 @@ clang-fix-cmpxchg8-detection-on-i386.patch
lldb-addversion-suffix-to-llvm-server-exec.patch
upstream-msan-prevent-initialization-failure.diff
upstream-asan-msan-fix-reallocation-logic.diff
lit-force-lang.diff