[PATCH] D22946: [CUDA] Regression test to make sure C++ include path are forwarded to host and device frontends.

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 13:18:39 PDT 2016


tra added a comment.

cuda-detect.cu may be a better place for this test.


================
Comment at: test/Driver/cuda-simple.cu:27
@@ -16,1 +26,3 @@
+// CHECK-CXXINCLUDE: clang{{.*}} "-cc1" "-triple" "x86_64--linux-gnu" {{.*}}"-internal-isystem" "{{.+}}/include/c++/4.8"
+// CHECK-CXXINCLUDE: ld" {{.*}}"-m" "elf_x86_64"
 
----------------
Linker match pattern will cause problems on windows. We normally use `ld{{.*}}"` .

Linker options are irrelevant here, IMO, as this line is only used as a marker for the end of the list of commands produced by compiler.


https://reviews.llvm.org/D22946





More information about the cfe-commits mailing list