ilammy / msvc-dev-cmd

GitHub Action to setup Developer Command Prompt for Microsoft Visual C++
MIT License
338 stars 49 forks source link

Not working with clang-cl #66

Open neheb opened 1 year ago

neheb commented 1 year ago

It seems when setting the CI to x86 with arch, something else needs to be set:

Sanity check compiler command line: clang-cl sanitycheckcpp.cc /Fesanitycheckcpp.exe /MDd /nologo /showIncludes /utf-8 /link
Sanity check compile stdout:
LINK : error LNK2001: unresolved external symbol mainCRTStartup
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.34.31933\lib\x86\msvcrtd.lib : warning LNK4272: library machine type 'x86' conflicts with target machine type 'x64'
sanitycheckcpp.exe : fatal error LNK1120: 1 unresolved externals
pzhlkj6612 commented 1 year ago

Might helpful: c++ - How run clang from command line on Windows? - Stack Overflow