[Clang] Make the linker wrapper test require Linux
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 25 Jan 2023 15:30:51 +0000 (09:30 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 25 Jan 2023 15:31:59 +0000 (09:31 -0600)
Summary:
We only support this offloading on Linux currently, and this handling of
static libraries is mostly based on Linux systems. So we should only
test those systems for now until we expland to other operating systems
in the future.

clang/test/Driver/linker-wrapper-libs.c

index aa82dd5..a97420c 100644 (file)
@@ -2,6 +2,8 @@
 // REQUIRES: nvptx-registered-target
 // REQUIRES: amdgpu-registered-target
 
+// REQUIRES: system-linux
+
 // RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.elf.o
 
 #if defined(RESOLVES)