Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ok, then just cl.exe instead of gcc or clang. Completely different set of command line options from gcc and clang, but that's fine. C/C++ build tooling needs to be able to deal with different toolchains. The diversity of C/C++ toolchains is a strength, not a weakness :)

One nice feature of MSVC is that you can describe the linker dependencies in the source files (via #pragma comment(lib, ...)), this enables building fairly complex single-file tools trivially without a build system like this:

   cl mytool.c
...without having to specify system dependencies like kernel32 etc... on the cmdline.


> Completely different set of command line options from gcc and clang, but that's fine.

Clang does have clang-cl with similar command-line options.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: