Skip to content

Commit 51920df

Browse files
authored
[SYCL] Fix Driver test after PR#6295 (#6355)
PR #6295 modified Driver/sycl-offload.c incorrectly. It used a triple specific to Linux, and this failed on Windows. This PR fixes that by checking a wildcard pattern for the other triple values.
1 parent e848c15 commit 51920df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Driver/sycl-offload.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
/// Check that -aux-triple is passed with -fsycl -fintelfpga
9090
// RUN: %clang -### -fsycl -fintelfpga %s 2>&1 \
9191
// RUN: | FileCheck -DARCH=x86_64 -DARCH2=spir64_fpga -check-prefix=CHK-SYCL-FPGA-AUX-TRIPLE %s
92-
// CHK-SYCL-FPGA-AUX-TRIPLE: clang{{.*}} "-cc1" "-triple" "[[ARCH]]-unknown-linux-gnu"{{.*}} "-aux-triple" "[[ARCH2]]-unknown-unknown"{{.*}} "-fsycl-is-host"
92+
// CHK-SYCL-FPGA-AUX-TRIPLE: clang{{.*}} "-cc1" "-triple" "[[ARCH]]-{{.*}}"{{.*}} "-aux-triple" "[[ARCH2]]-{{.*}}"{{.*}} "-fsycl-is-host"
9393
/// ###########################################################################
9494

9595
/// Validate SYCL option values

0 commit comments

Comments
 (0)