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.
922d33e5b9Daniel Saier committed on 2/3/2022, 4:52:52 AM· committed by Andrew Kelleyparent936294e
1 file changedLine totals unavailable