[Openmp-commits] [openmp] c3c02d0 - [OpenMP] Fix python3 compatibility in openmp's lit.cfg

Tobias Hieta via Openmp-commits openmp-commits at lists.llvm.org
Sun Jan 31 23:21:30 PST 2021


Author: Tobias Hieta
Date: 2021-02-01T08:20:26+01:00
New Revision: c3c02d0d5a313272f6d35926bdf678fc6b884c02

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

LOG: [OpenMP] Fix python3 compatibility in openmp's lit.cfg

Differential Revision: https://reviews.llvm.org/D95669

Added: 
    

Modified: 
    openmp/runtime/test/lit.cfg

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/test/lit.cfg b/openmp/runtime/test/lit.cfg
index 0d4a6107ff2b..c4e5fe1ea9e0 100644
--- a/openmp/runtime/test/lit.cfg
+++ b/openmp/runtime/test/lit.cfg
@@ -76,7 +76,7 @@ if config.operating_system == 'Darwin':
   cmd = subprocess.Popen(['xcrun', '--show-sdk-path'],
                          stdout=subprocess.PIPE, stderr=subprocess.PIPE)
   out, err = cmd.communicate()
-  out = out.strip()
+  out = out.strip().decode()
   res = cmd.wait()
   if res == 0 and out:
     config.test_flags += " -isysroot " + out


        


More information about the Openmp-commits mailing list