[clang] 4bb5d48 - [clang][NFC] Fix CUDA clang-cl tests

Michael Liao via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 08:55:38 PDT 2024


Author: Michael Liao
Date: 2024-04-09T11:55:31-04:00
New Revision: 4bb5d48584818646a31a1ba4bfbbd658b7dfbe67

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

LOG: [clang][NFC] Fix CUDA clang-cl tests

- Add '--' argument to prevent interpreting intput files as options
  starting with '/'. Fix test failure after
  2921a0928c71f4ee652a2478283e47ab5ffebf58.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/cuda-external-tools.cu b/clang/test/Driver/cuda-external-tools.cu
index d9564d026b4faa..9ada0cf8595dc6 100644
--- a/clang/test/Driver/cuda-external-tools.cu
+++ b/clang/test/Driver/cuda-external-tools.cu
@@ -89,7 +89,7 @@
 // Check -Xcuda-ptxas with clang-cl
 // RUN: %clang_cl -### -c -Xcuda-ptxas -foo1 \
 // RUN:   --offload-arch=sm_35 --cuda-path=%S/Inputs/CUDA/usr/local/cuda \
-// RUN:   -Xcuda-ptxas -foo2 %s 2>&1 \
+// RUN:   -Xcuda-ptxas -foo2 -- %s 2>&1 \
 // RUN: | FileCheck -check-prefixes=CHECK,SM35,PTXAS-EXTRA %s
 
 // MacOS spot-checks


        


More information about the cfe-commits mailing list