[Openmp-commits] [openmp] d87ca51 - [Libomptarget] Use binutils archive executable to address failing tests

Joseph Huber via Openmp-commits openmp-commits at lists.llvm.org
Tue Jun 14 19:14:36 PDT 2022


Author: Joseph Huber
Date: 2022-06-14T22:14:17-04:00
New Revision: d87ca519c9760893adb1cf2a26451f0db1ed9a8f

URL: https://github.com/llvm/llvm-project/commit/d87ca519c9760893adb1cf2a26451f0db1ed9a8f
DIFF: https://github.com/llvm/llvm-project/commit/d87ca519c9760893adb1cf2a26451f0db1ed9a8f.diff

LOG: [Libomptarget] Use binutils archive executable to address failing tests

Summary:
The static linking test ensures that we can statically link offloading
programs. To create the test we used `llvm-ar`. However, this may not
exist in the user's environment. This patch changes it to use the
binutils `ar` which should exist on every system running these tests
currently. In the future we should set up the dependencies properly.

Added: 
    

Modified: 
    openmp/libomptarget/test/offloading/static_linking.c

Removed: 
    


################################################################################
diff  --git a/openmp/libomptarget/test/offloading/static_linking.c b/openmp/libomptarget/test/offloading/static_linking.c
index c6836860b9a72..c66327aa1d757 100644
--- a/openmp/libomptarget/test/offloading/static_linking.c
+++ b/openmp/libomptarget/test/offloading/static_linking.c
@@ -1,5 +1,5 @@
 // RUN: %libomptarget-compile-generic -DLIBRARY -c -o %t.o
-// RUN: llvm-ar rcs %t.a %t.o
+// RUN: ar rcs %t.a %t.o
 // RUN: %libomptarget-compile-generic %t.a && %libomptarget-run-generic 2>&1 | %fcheck-generic
 
 // UNSUPPORTED: nvptx64-nvidia-cuda-oldDriver


        


More information about the Openmp-commits mailing list