3 ms·
This. I maintain a project that has to build about 28,000 object files. It takes less than a minute on Linux. Even though our binaries run on Windows, we willfu
by jart 5y ago
This. I maintain a project that has to build about 28,000 object files. It takes less than a minute on Linux. Even though our binaries run on Windows, we willfully choose not to support building them on Windows. I tell people, trust me, it'll compile so much faster if you just create a Linux VM on your Windows computer and then run make there. But they never believe me until they see it with their own eyes. vfork() is a thing. It also helps to not have to fsync() on close() due to shortcomings with win32.
- phendrenad2 5y agoWhy are you compiling on your local machine? Do you live in a remote village without high-speed internet?
- jart 5y agoAm I supposed to be writing my code in the cloud?
- phendrenad2 5y agoUploading a diff, compiling, and downloading the resulting artifact is usually extremely fast on modern internet connections.
- supercheetah 5y agoWhat about cross compiling Windows binaries from Linux with MinGW or the like?
- jart 5y agoI use something better than MinGW which lets the Linux binaries I build, run not only on Windows, but also Apple, FreeBSD, NetBSD, OpenBSD, and boot from BIOS too. It's sort of like what Java promised to be with the whole saying, "build once run anywhere" except it actually is and it doesn't need an interpreter either.