Support for "cosmopolitan libc"
At https://justine.lol/cosmo3/ we can learn about the progress of the cosmopolitan libc, which is a:
Cosmopolitan Libc makes C a build-anywhere run-anywhere language, like Java, except it doesn't need an interpreter or virtual machine. Instead, it reconfigures stock GCC and Clang to output a POSIX-approved polyglot format that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS on AMD64 and ARM64 with the best possible performance.
The 3.2.4 release adds support for C++.
This v3.2.4 release of Cosmopolitan introduces C++ exceptions and RTTI, which can be enabled by passing the
-fexceptions
and/or-rtti
flags to yourcosmocc
compiler.
It would be great if CMake would be part of the "cosmos" and would also allow users to compile their C++ code targeting the "SDK" and generate these "run everywhere" binaries.