diff options
author | Michał Górny <mgorny@gentoo.org> | 2025-05-03 20:06:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-03 20:06:14 +0200 |
commit | d1e38eab95b07b422194427474521623916bbf29 (patch) | |
tree | 5fe478d58f8944e771a3d9c081312676d5a1ca77 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | |
parent | ea08dd8dc395e5f711f3acc542d3b4f0d4c8dfc0 (diff) | |
download | llvm-d1e38eab95b07b422194427474521623916bbf29.zip llvm-d1e38eab95b07b422194427474521623916bbf29.tar.gz llvm-d1e38eab95b07b422194427474521623916bbf29.tar.bz2 |
[offload] Fix enabling unittests in standalone builds (#138418)
Modify the unittest logic in offload to only look for
`third-party/unittest` directory when `llvm_gtest` is not provided by
LLVM itself (in-tree or installed). This makes it possible to run
unittests in sparse checkouts without the `third-party/unittest` tree.
While at it, also make sure `LLVM_THIRD_PARTY_DIR` is actually set while
performing standalone builds. The logic is copied from `compiler-rt`.
---------
Co-authored-by: Joseph Huber <huberjn@outlook.com>
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions