[all-commits] [llvm/llvm-project] 411852: [lldb] Explicitly use the configuration architectu...
Raphael Isemann via All-commits
all-commits at lists.llvm.org
Thu Oct 22 06:31:05 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 41185226f6d80663b4a1064c6f47581ee567d78d
https://github.com/llvm/llvm-project/commit/41185226f6d80663b4a1064c6f47581ee567d78d
Author: Raphael Isemann <teemperor at gmail.com>
Date: 2020-10-22 (Thu, 22 Oct 2020)
Changed paths:
M lldb/packages/Python/lldbsuite/test/builders/builder.py
M lldb/packages/Python/lldbsuite/test/lldbtest.py
Log Message:
-----------
[lldb] Explicitly use the configuration architecture when building test executables
The Darwin builder currently assumes in `getArchCFlags` that the passed `arch`
value is an actual string it can string.join with vendor/os/version/env strings:
```
triple = '-'.join([arch, vendor, os, version, env])
```
However this is not true for most tests as we just pass down the `arch=None`
default value from `TestBase.build`. This causes that if we actually end up in
this function we just error out when concatenating `None` with the other actual
strings of vendor/os/version/env. What we should do instead is check that if
there is no test-specific architecture that we fall back to the configuration's
architecture value.
It seems we already worked around this in `builder.getArchSpec` by explicitly
falling back to the architecture specified in the configuration.
This patch just moves this fallback logic to the top `build` function so that it
affects all functions called from `TestBase.build`.
Reviewed By: JDevlieghere
Differential Revision: https://reviews.llvm.org/D89056
More information about the All-commits
mailing list