================
@@ -0,0 +1,27 @@
+// From CUDA 13.0 on, the CUDA C++ Core Libraries are in include/cccl of the
+// CUDA installation. Check that it is a system include directory, right after
+// include/, for both the device and the host compilation.
+
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu --cuda-gpu-arch=sm_75 \
+// RUN:   --cuda-path=%S/Inputs/CUDA_130/usr/local/cuda %s 2>&1 \
+// RUN:   | FileCheck %s --check-prefix=CCCL
+
+// CCCL: "-cc1" "-triple" "nvptx64-nvidia-cuda"
+// CCCL-SAME: "-internal-isystem" 
"[[CUDA:[^"]*Inputs/CUDA_130/usr/local/cuda]]/include" "-internal-isystem" 
"[[CUDA]]/include{{[/\\]+}}cccl"
----------------
carodewig wrote:

I think it's guaranteed to be `/` because the path is explicitly constructed 
via `+ "/include"` here, versus `cccl` being appended with 
`llvm::sys::path::append`:
https://github.com/llvm/llvm-project/blob/da4334419e6be66b3b16620d3ff17c13f9e6a373/clang/lib/Driver/ToolChains/Cuda.cpp#L218

https://github.com/llvm/llvm-project/pull/235910
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to