tra requested changes to this revision.
tra added a comment.
This revision now requires changes to proceed.

One concern I have is that the path we configure during clang's build is not 
necessarily the right choice for the user of clang we build. It's likely that 
the clang in the end will be used on a completely different machine.
E.g. official clang builds can not ever provide the same CUDA path for *all* 
users who end up using them. Requiring the rest to use a special option to make 
clang work again looks like an overall usability regression to me.

I think the default should still let clang search for CUDA or require the user 
to provide correct CUDA path.  "Use CUDA path discovered by CMake at build 
time" should be a non-default configuration option if/when it's needed and 
appropriate.

Alternatively, I would not object to appending cmake-discovered path to the 
default search list, or enforcing it for OpenMP builds only if that's what 
OpenMP needs (though I still don't see how that's going to be a good default 
for all/most users).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89974

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

Reply via email to