[compiler-rt] Fix issue related to switch to Python3 in lit config
authorJulian Lettner <julian.lettner@apple.com>
Wed, 29 Apr 2020 21:33:19 +0000 (14:33 -0700)
committerJulian Lettner <julian.lettner@apple.com>
Wed, 29 Apr 2020 21:34:32 +0000 (14:34 -0700)
compiler-rt/test/lit.common.cfg.py

index 6f32501..efd64b3 100644 (file)
@@ -181,7 +181,7 @@ elif config.host_os == 'Darwin' and config.apple_platform != "osx":
   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)