mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-12 09:17:53 +00:00
This new script is an alternative to the `cosmocc` command. It's still a work in progress. It abstracts all the gory details of building separate copies of your executable and then running the apelink.com program.
13 lines
251 B
Bash
Executable file
13 lines
251 B
Bash
Executable file
#!/bin/sh
|
|
|
|
MODE=${MODE:-$m}
|
|
COSMO=${COSMO:-/opt/cosmo}
|
|
COSMOS=${COSMOS:-/opt/cosmos}
|
|
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-ld"
|
|
|
|
if [ ! -x "$TOOL" ]; then
|
|
echo "$0: you need to run: cosmocc --update" >&2
|
|
exit 1
|
|
fi
|
|
|
|
exec "$TOOL" "$@"
|