zig cc: Treat cu files as C++ source files

First step towards #10634.

Treating stub files as C++ allows to use zig c++ as a host
compiler for nvcc.

Treating cu files as C++ allow using zig c++ as a host compiler in
CMake. CMake calls the host compiler with -E on a cu file to identify
the compiler.

Using zig c++ to directly compile CUDA code is untested.
2f41bd3be4Daniel Saier committed on 1/27/2022, 5:23:55 PM· committed by Veikka Tuominenparent35423b0
1 file changedLine totals unavailable