From 3383f946ab78ac62a9ae4c525628a9e6a20c75eb Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 11 Nov 2016 17:46:51 +0000 Subject: [PATCH] Force the locale when executing ld gold Summary: If run with other locales (like French), the decode operation might fail This is the same change as in r246421 for llvm. llvm-svn: 286605 --- compiler-rt/test/lit.common.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/test/lit.common.cfg b/compiler-rt/test/lit.common.cfg index ed7a205..7fcb03f 100644 --- a/compiler-rt/test/lit.common.cfg +++ b/compiler-rt/test/lit.common.cfg @@ -153,7 +153,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() -- 2.7.4