Skip to content

Commit 4bb5d48

Browse files
committed
[clang][NFC] Fix CUDA clang-cl tests
- Add '--' argument to prevent interpreting intput files as options starting with '/'. Fix test failure after 2921a09.
1 parent 8a8ab8f commit 4bb5d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Driver/cuda-external-tools.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
// Check -Xcuda-ptxas with clang-cl
9090
// RUN: %clang_cl -### -c -Xcuda-ptxas -foo1 \
9191
// RUN: --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
92-
// RUN: -Xcuda-ptxas -foo2 %s 2>&1 \
92+
// RUN: -Xcuda-ptxas -foo2 -- %s 2>&1 \
9393
// RUN: | FileCheck -check-prefixes=CHECK,SM35,PTXAS-EXTRA %s
9494

9595
// MacOS spot-checks

0 commit comments

Comments
 (0)