cosmopolitan/tool
Justine Tunney e7b586e7f8
Add preliminary support for cosmocc -mclang
C++ code compiles very slowly with cosmocc, possibly because we're using
LLVM LIBCXX with GCC, and LLVM doesn't work as hard to make GCC go fast.
Therefore, it should be possible, to ask cosmocc to favor Clang over GCC
under the hood. On llamafile, my intention's to use this to make certain
files, e.g. llama.cpp/common.cpp, go from taking 17 seconds to 5 seconds

This new -mclang flag isn't ready for production yet since there's still
the question of how to get Clang to generate SJLJ exception code. If you
use this, then it's recommended you also pass -fno-exceptions.

The tradeoff is we're adding a 121mb binary to the cosmocc distribution.
There are no plans as of yet to fully migrate to Clang since GCC is very
good and has always treated us well.
2024-08-26 12:33:35 -07:00
..
args Move LoadZipArgs() to cosmo.h 2024-08-17 12:06:27 -07:00
build Make atomics faster on aarch64 2024-08-16 11:14:46 -07:00
cosmocc Add preliminary support for cosmocc -mclang 2024-08-26 12:33:35 -07:00
curl Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
decode Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
emacs Make Emacs load 2x faster 2024-08-23 20:08:05 -07:00
hello Make atomics faster on aarch64 2024-08-16 11:14:46 -07:00
lambda Update Musl Libc code 2024-07-30 22:51:29 -07:00
net Move LoadZipArgs() to cosmo.h 2024-08-17 12:06:27 -07:00
plinko Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
scripts Refactor and improve CTL and other code 2024-06-04 05:45:48 -07:00
viz Avoid linker conflicts on DescribeFoo symbols 2024-08-24 18:10:22 -07:00
zsh Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
BUILD.mk more modeline errata (#1019) 2023-12-16 23:07:10 -05:00