godot-cpp/tools
Kevin Smith b038fe556b Add clang-cl support
Visual C++ has a clang-based driver, available through the
clang-cl wrapper (which provides the same interface as
cl) - this generates objects binary-compatible with the
default (traditional) driver, and can then be linked in
the normal way. As such, this patch simply configures for
MSVCC and then overwrites the cl compiler with clang-cl
in the environment.

Clang gives (subjectively) much more understandable compiler warnings
and errors than MSVCC, which was my motivation for switching.

Test-Information:
Builds for me with VS2022, and my gdextension library
builds and links.
2022-07-12 18:13:25 +01:00
..
android.py [SCons] Move toolchains logic to tools folder. 2022-06-27 20:44:12 +02:00
ios.py [SCons] Add iOS OSXCross support, min version override. 2022-06-27 20:44:12 +02:00
ios_osxcross.py [SCons] Add iOS OSXCross support, min version override. 2022-06-27 20:44:12 +02:00
javascript.py [SCons] Move toolchains logic to tools folder. 2022-06-27 20:44:12 +02:00
linux.py [SCons] Fix msvc, linux-clang, add version check. 2022-07-04 18:00:29 +02:00
my_spawn.py [SCons] Move toolchains logic to tools folder. 2022-06-27 20:44:12 +02:00
osx.py [SCons] Add OSXCross tool. 2022-06-27 20:44:12 +02:00
osxcross.py [SCons] Add OSXCross tool. 2022-06-27 20:44:12 +02:00
windows.py Add clang-cl support 2022-07-12 18:13:25 +01:00