Redesign cosmocc toolchain

The `cosmocc` compiler is now being distributed as a self-contained
toolchain that's path-agnostic and it no longer requires you clone the
Cosmop repo to use it. The bin/ folder has been deleted from the mono
repo. The `fatcosmocc` command has been renamed to `cosmocc`. MacOS
support now works very well.
This commit is contained in:
Justine Tunney 2023-11-11 14:04:26 -08:00
parent 3802428026
commit 291103ad8d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
71 changed files with 2437 additions and 1398 deletions

15
tool/cosmocc/bin/cosmoaddr2line Executable file
View file

@ -0,0 +1,15 @@
#!/bin/sh
BIN=${0%/*}
set -- -apifCe "$@"
if [ -n "$ADDR2LINE" ]; then
exec "$ADDR2LINE" "$@"
fi
for arch in x86_64 aarch64; do
"$BIN/$arch-linux-cosmo-addr2line" "$@" 2>/dev/null && exit
done
echo "error: addr2line failed" >&2
exit 1