[cfe-users] clang-cl choosing VC++ backend on Windows

2019-07-22 Thread Edward Diener via cfe-users
Given multiple installations installed of Visual Studio/VC++ on Windows, with none of them normally in the PATH, how does clang-cl choose which one to use at compile/link time as the clang backend ? ___ cfe-users mailing list cfe-users@lists.llvm.org

[cfe-users] clang-cl choosing VC++ backend on Windows

2019-07-22 Thread Edward Diener via cfe-users
Given multiple installations installed of Visual Studio on Windows, with none of them normally in the PATH, how does clang-cl choose which one to use at compile/link time as the VC++ backend ? ___ cfe-users mailing list cfe-users@lists.llvm.org https:

[cfe-users] Compiling CUDA does not define __CUDACC__

2019-10-02 Thread Edward Diener via cfe-users
According to https://llvm.org/docs/CompileCudaWithLLVM.html#detecting-clang-vs-nvcc-from-code if I compile a CUDA file then __CUDACC__ should be defined. I have this program as 'clang_cuda.cu': #if !defined(__clang__) #error Clang is not defined #elif !defined(__CUDACC__) #error __CUDACC__