tambre added inline comments.

================
Comment at: clang/lib/Driver/Driver.cpp:2579
+      if (Version == CudaVersion::UNKNOWN) {
+        C.getDriver().Diag(clang::diag::err_drv_cuda_unknown_version)
+            << VersionString;
----------------
This error is hit when simply running `clang++ -v`, because a `CudaToolchain` 
isn't created. The `CudaInstallation` is instead created in `Generic_GCC`. My 
current approach of propagating the current CUDA version to here seems even 
worse now. Ignoring an unknown version doesn't seem like a good idea either.
Ideas?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75811/new/

https://reviews.llvm.org/D75811



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to