[PATCH] D16488: Fix getCompiler in unit testing framework on compiler symlinks
Francis Ricci via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 22 15:18:36 PST 2016
fjricci updated this revision to Diff 45760.
fjricci added a comment.
Clean up imports
http://reviews.llvm.org/D16488
Files:
packages/Python/lldbsuite/test/plugins/builder_base.py
Index: packages/Python/lldbsuite/test/plugins/builder_base.py
===================================================================
--- packages/Python/lldbsuite/test/plugins/builder_base.py
+++ packages/Python/lldbsuite/test/plugins/builder_base.py
@@ -22,7 +22,8 @@
def getCompiler():
"""Returns the compiler in effect the test suite is running with."""
- return os.environ["CC"] if "CC" in os.environ else "clang"
+ compiler = os.environ.get("CC", "clang")
+ return os.path.realpath(compiler)
def getArchFlag():
"""Returns the flag required to specify the arch"""
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16488.45760.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160122/54a201e6/attachment.bin>
More information about the llvm-commits
mailing list