Skip to content

Commit 0e58998

Browse files
committed
Wrap windows-msvc target in %if for lit tests
1 parent a6ff2d1 commit 0e58998

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

clang/test/Driver/lto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// CHECK-COMPILE-ACTIONS: 2: compiler, {1}, ir
66
// CHECK-COMPILE-ACTIONS: 3: backend, {2}, lto-bc
77

8-
// RUN: %clang -ccc-print-phases -fuse-ld=lld %s -flto 2> %t
8+
// RUN: %clang -ccc-print-phases %if target={{.*-windows-msvc.*}} %{ -fuse-ld=lld %} -flto %s 2> %t
99
// RUN: FileCheck -check-prefix=CHECK-COMPILELINK-ACTIONS < %t %s
1010
//
1111
// CHECK-COMPILELINK-ACTIONS: 0: input, "{{.*}}lto.c", c

clang/test/Driver/thinlto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// CHECK-COMPILE-ACTIONS: 2: compiler, {1}, ir
66
// CHECK-COMPILE-ACTIONS: 3: backend, {2}, lto-bc
77

8-
// RUN: %clang -fuse-ld=lld -ccc-print-phases %s -flto=thin 2> %t
8+
// RUN: %clang -ccc-print-phases %if target={{.*-windows-msvc.*}} %{ -fuse-ld=lld %} -flto=thin %s 2> %t
99
// RUN: FileCheck -check-prefix=CHECK-COMPILELINK-ACTIONS < %t %s
1010
//
1111
// CHECK-COMPILELINK-ACTIONS: 0: input, "{{.*}}thinlto.c", c

clang/test/Driver/thinlto.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// CHECK-COMPILE-ACTIONS-NOT: lto-bc
77
// CHECK-COMPILE-ACTIONS: 12: backend, {11}, lto-bc, (host-cuda)
88

9-
// RUN: %clangxx -ccc-print-phases -fuse-ld=lld --no-offload-new-driver -nocudainc -nocudalib %s -flto=thin 2> %t
9+
// RUN: %clangxx -ccc-print-phases %if target={{.*-windows-msvc.*}} %{ -fuse-ld=lld %} --no-offload-new-driver -nocudainc -nocudalib %s -flto=thin 2> %t
1010
// RUN: FileCheck -check-prefix=CHECK-COMPILELINK-ACTIONS < %t %s
1111
//
1212
// CHECK-COMPILELINK-ACTIONS: 0: input, "{{.*}}thinlto.cu", cuda, (host-cuda)

0 commit comments

Comments
 (0)