================
@@ -266,16 +266,11 @@ def getCompiler():
return module.getCompiler()
-def getCompilerBinary():
- """Returns the compiler binary the test suite is running with."""
- return getCompiler().split()[0]
-
-
def getCompilerVersion():
"""Returns a string that represents the compiler version.
Supports: llvm, clang.
"""
- compiler = getCompilerBinary()
+ compiler = getCompiler()
version_output = subprocess.check_output([compiler, "--version"],
errors="replace")
----------------
DavidSpickett wrote:
Might as well put `getCompiler()` directly in this line, no local variable
needed.
https://github.com/llvm/llvm-project/pull/100660
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits