================
@@ -144,6 +146,13 @@ TEST(DeviceOffloadBuilderTest,
MultipleOffloadArchsAreRejected) {
}
TEST_F(DeviceOffloadHIPTest, DeviceObjectIsGenerated) {
+ // The device object is linked into an HSACO with ld.lld.
+ std::string Exe = llvm::sys::fs::getMainExecutable(nullptr, nullptr);
+ if (!llvm::sys::findProgramByName("ld.lld",
+ {llvm::sys::path::parent_path(Exe)}) &&
+ !llvm::sys::findProgramByName("ld.lld"))
+ GTEST_SKIP() << "ld.lld not found";
----------------
yxsamliu wrote:
Could we keep the object-generation test running without `ld.lld` and test the
HSACO link separately? Skipping this whole test also removes the existing
object check.
https://github.com/llvm/llvm-project/pull/235614
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits