cosmopolitan/tool/cosmocc/bin/cosmoaddr2line
Justine Tunney 291103ad8d
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.
2023-11-11 14:18:08 -08:00

15 lines
243 B
Bash
Executable file

#!/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