Are llvm-gcc and clang binary compatible with gcc? - particularly mingw gcc on Windows

后端 未结 5 778
旧时难觅i
旧时难觅i 2020-12-14 07:30

If I build a static library with llvm-gcc, then link it with a program compiled using mingw gcc, will the result work?

The same for other combinations of llvm-gcc, c

5条回答
  •  青春惊慌失措
    2020-12-14 07:48

    I use -m i386pep when linking clang's .o files by ld. llvm's devotion to integrating with gcc is seen openly at http://dragonegg.llvm.org/ so its very intuitive to guess llvm family will greatly be cross-compatible with gcc tool-chain.

提交回复
热议问题