[compiler-rt] r286605 - Force the locale when executing ld gold

Sylvestre Ledru via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 11 09:46:51 PST 2016


Author: sylvestre
Date: Fri Nov 11 11:46:51 2016
New Revision: 286605

URL: http://llvm.org/viewvc/llvm-project?rev=286605&view=rev
Log:
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.



Modified:
    compiler-rt/trunk/test/lit.common.cfg

Modified: compiler-rt/trunk/test/lit.common.cfg
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/lit.common.cfg?rev=286605&r1=286604&r2=286605&view=diff
==============================================================================
--- compiler-rt/trunk/test/lit.common.cfg (original)
+++ compiler-rt/trunk/test/lit.common.cfg Fri Nov 11 11:46:51 2016
@@ -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()
 




More information about the llvm-commits mailing list