================ @@ -0,0 +1,33 @@ +// UNSUPPORTED: system-windows + +// Test that Debian-style multiarch layouts, in which libamdhip64.so is +// installed under <rocm>/lib/<triple>/ rather than <rocm>/lib/, are +// detected by the driver and reflected in the linker command line. + +// RUN: touch %t.o + +// Build a fake ROCm tree that mimics a Debian multiarch layout: +// <rocm>/bin/.hipVersion signals a valid HIP install, +// <rocm>/lib/x86_64-linux-gnu/libamdhip64.so is the runtime the driver +// must find. +// RUN: rm -rf %t.rocm.multiarch +// RUN: mkdir -p %t.rocm.multiarch/bin +// RUN: mkdir -p %t.rocm.multiarch/lib/x86_64-linux-gnu +// RUN: cp %S/Inputs/rocm/bin/.hipVersion %t.rocm.multiarch/bin/.hipVersion +// RUN: touch %t.rocm.multiarch/lib/x86_64-linux-gnu/libamdhip64.so ---------------- arsenm wrote:
I'd prefer just adding a new set of dummy entries in a new fake root in Inputs rather than having the test manually construct its root https://github.com/llvm/llvm-project/pull/207624 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
