================ @@ -333,3 +335,41 @@ def expectedCompiler(compilers): return True return False + + +# This is a helper function to determine if a specific version of Xcode's linker +# contains a TLS bug. We want to skip TLS tests if they contain this bug, but +# adding a linker/linker_version conditions to a decorator is challenging due to +# the number of ways linkers can enter the build process. +def darwinLinkerHasTLSBug(): + """Returns true iff a test is running on a darwin platform and the host linker is between versions 1000 and 1109.""" + darwin_platforms = lldbplatform.translate(lldbplatform.darwin_all) + if getPlatform() not in darwin_platforms: + return False + + linker_path = ( + subprocess.check_output(["xcrun", "--find", "ld"]).rstrip().decode("utf-8") ---------------- kastiglione wrote:
I believe this is more conventional: ```suggestion subprocess.check_output(["xcrun", "--find", "ld"], text=True).rstrip() ``` https://github.com/llvm/llvm-project/pull/83941 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits