[Qbs] Clang and linking C++ on Windows
Joerg Bornemann
joerg.bornemann at qt.io
Wed May 2 08:11:34 CEST 2018
On 05/01/2018 10:00 PM, resurrection at centrum.cz wrote:
> What should be done in my
> opinion is to add windows-clang.qbs file similar to existing
> windows-msvc.qbs and windows-mingw.qbs in cpp module. And of course the
> profile routing would need to be changed so that Clang on Windows does
> not automatically mean everything GCC and Linux-like. I suppose the
> existing windows specific qbs files could be re-used.
That's pretty much what is needed to support clang on Windows.
The windows-clang cpp module would need to act like gcc for the compiler
and like msvc for the linker.
The lion's share of the logic is in gcc.js / msvc.js. The windows-clang
cpp module would import both and use the appropriate functions for
compiler/linker.
BR,
Joerg
More information about the Qbs
mailing list