[compiler-rt] d56f62e - [compiler-rt] Fix issue related to switch to Python3 in lit config

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 14:34:40 PDT 2020


Author: Julian Lettner
Date: 2020-04-29T14:34:32-07:00
New Revision: d56f62e0df3d5a3a3e3cd66288533e0e6dc85426

URL: https://github.com/llvm/llvm-project/commit/d56f62e0df3d5a3a3e3cd66288533e0e6dc85426
DIFF: https://github.com/llvm/llvm-project/commit/d56f62e0df3d5a3a3e3cd66288533e0e6dc85426.diff

LOG: [compiler-rt] Fix issue related to switch to Python3 in lit config

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/lit.common.cfg.py b/compiler-rt/test/lit.common.cfg.py
index 6f325013a22c..efd64b3ca9f9 100644
--- a/compiler-rt/test/lit.common.cfg.py
+++ b/compiler-rt/test/lit.common.cfg.py
@@ -181,7 +181,7 @@
   config.compile_wrapper = compile_wrapper
 
   try:
-    prepare_output = subprocess.check_output([prepare_script, config.apple_platform, config.clang]).strip()
+    prepare_output = subprocess.check_output([prepare_script, config.apple_platform, config.clang]).decode().strip()
   except subprocess.CalledProcessError as e:
     print("Command failed:")
     print(e.output)


        


More information about the llvm-commits mailing list