mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 11:37:35 +00:00
291103ad8d
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.
15 lines
243 B
Bash
Executable file
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
|