Closed Quuxplusone closed 10 years ago
Attached msvc-preprocessor.c
(357821 bytes, text/plain): Preprocessor output of CL.exe
After further discussion on IRC. We realized that by specifying:
clang-cl -Xclang -mrtd -c msvc-preprocessor.c
The output does properly link. This specifies the default calling convention as
stdcall instead of cdecl.
clang performs correct here. The switch to stdcall calling convention is performed via the command line.
I know nothing about building Windows drivers, but probably we should add support to clang-cl for the flag equivalent to -mrtd.
msvc-preprocessor.c
(357821 bytes, text/plain)