[all-commits] [llvm/llvm-project] 1dbac0: [lldb/test] Support git commit version ids for clang.
Jordan Rupprecht via All-commits
all-commits at lists.llvm.org
Wed Aug 5 13:17:28 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 1dbac09dd6ec8587ae7e16ed669bf73889a21957
https://github.com/llvm/llvm-project/commit/1dbac09dd6ec8587ae7e16ed669bf73889a21957
Author: Jordan Rupprecht <rupprecht at google.com>
Date: 2020-08-05 (Wed, 05 Aug 2020)
Changed paths:
M lldb/packages/Python/lldbsuite/test/lldbtest.py
Log Message:
-----------
[lldb/test] Support git commit version ids for clang.
`getCompilerVersion` assumes that `clang --version` prints out a string like `version [0-9\.]+`.
If clang is built from trunk, the version line might look like `clang version trunk (123abc)`.
Since there isn't any way of knowing by the commit id alone whether one commit is newer or older than another git commit (or clang version), assume that clang with a version id like this is very close to trunk. For example, any tests with `@skipIf(compiler="clang", compiler_version=['<', '8'])` should be run.
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D85248
More information about the All-commits
mailing list