-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[lldb] Remove python helper getCompilerBinary() #100660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lldb] Remove python helper getCompilerBinary() #100660
Conversation
@llvm/pr-subscribers-lldb Author: Kendal Harland (kendalharland) ChangesThis causes a number of tests be Full diff: https://github.com/llvm/llvm-project/pull/100660.diff 1 Files Affected:
diff --git a/lldb/packages/Python/lldbsuite/test/lldbplatformutil.py b/lldb/packages/Python/lldbsuite/test/lldbplatformutil.py
index e3c6fd1a99568..0bbe1db424630 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbplatformutil.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbplatformutil.py
@@ -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")
m = re.search("version ([0-9.]+)", version_output)
if m:
|
Seems fine to me, but there is a use of it in |
And the CI failure is one of our old friends:
That you can safely ignore. |
Not sure how I missed that one. Ty! |
c779fac
to
6769752
Compare
Thanks for the reviews! I'll need help merging from someone with write access |
This causes a number of tests be
UNRESOLVED
on Windows ifgetCompiler()
has a space in the name, becausegetCompilerBinary()
unconditionally splits on whitespace and returns the first result, which might just be"C:\Program"
if using a compiler such asclang-cl
cl
from the absolute path to Visual studio's installation directory.