mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-11 21:49:12 +00:00
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:
parent
3802428026
commit
291103ad8d
71 changed files with 2437 additions and 1398 deletions
15
tool/cosmocc/bin/cosmoaddr2line
Executable file
15
tool/cosmocc/bin/cosmoaddr2line
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue