diff --git a/bin/aarch64-unknown-cosmo-g++ b/bin/aarch64-unknown-cosmo-g++ deleted file mode 120000 index 978d77998..000000000 --- a/bin/aarch64-unknown-cosmo-g++ +++ /dev/null @@ -1 +0,0 @@ -cosmocc \ No newline at end of file diff --git a/bin/aarch64-unknown-cosmo-gcc b/bin/aarch64-unknown-cosmo-gcc deleted file mode 120000 index 978d77998..000000000 --- a/bin/aarch64-unknown-cosmo-gcc +++ /dev/null @@ -1 +0,0 @@ -cosmocc \ No newline at end of file diff --git a/bin/aarch64-unknown-cosmo-ld b/bin/aarch64-unknown-cosmo-ld deleted file mode 100755 index c442f6f79..000000000 --- a/bin/aarch64-unknown-cosmo-ld +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh - -MODE=${MODE:-${m:-aarch64}} -COSMO=${COSMO:-/opt/cosmo} -COSMOS=${COSMOS:-/opt/cosmos/aarch64} -TOOL="$COSMO/o/third_party/gcc/bin/aarch64-linux-musl-ld" - -if [ ! -x "$TOOL" ]; then - echo "$0: you need to run: aarch64-unknown-cosmo-cc --update" >&2 - exit 1 -fi - -exec "$TOOL" "$@" diff --git a/bin/apecopy b/bin/apecopy index 4f2d5a0a1..98d6eb549 100755 --- a/bin/apecopy +++ b/bin/apecopy @@ -18,6 +18,7 @@ Cosmopolitan's third_party/gcc/ for source code and copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. EOF +exit fi if [ x"$1" = x"--help" ]; then @@ -26,6 +27,7 @@ Usage: $PROG INPUT OUTPUT Converts an executable linked by cosmocc to the Actually Portable Executable file format. See $PROG --version for other details. EOF +exit fi fatal_error() { diff --git a/bin/cosmocc b/bin/cosmocc index ff7e479ea..3c9f907a4 100755 --- a/bin/cosmocc +++ b/bin/cosmocc @@ -95,7 +95,7 @@ Cosmopolitan's third_party/gcc/ for source code and copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. EOF -exit 0 +exit fi fatal_error() { diff --git a/bin/unknown-unknown-cosmo-g++ b/bin/unknown-unknown-cosmo-g++ deleted file mode 120000 index 2c122c271..000000000 --- a/bin/unknown-unknown-cosmo-g++ +++ /dev/null @@ -1 +0,0 @@ -fatcosmocc \ No newline at end of file diff --git a/bin/unknown-unknown-cosmo-gcc b/bin/unknown-unknown-cosmo-gcc deleted file mode 120000 index 2c122c271..000000000 --- a/bin/unknown-unknown-cosmo-gcc +++ /dev/null @@ -1 +0,0 @@ -fatcosmocc \ No newline at end of file diff --git a/bin/x86_64-unknown-cosmo-addr2line b/bin/x86_64-unknown-cosmo-addr2line index 5f7287848..59bbad431 100755 --- a/bin/x86_64-unknown-cosmo-addr2line +++ b/bin/x86_64-unknown-cosmo-addr2line @@ -6,7 +6,7 @@ COSMOS=${COSMOS:-/opt/cosmos} TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-addr2line" if [ ! -x "$TOOL" ]; then - echo "$0: you need to run: cosmocc --update" >&2 + echo "$0: you need to run: x86_64-unknown-cosmo-cc --update" >&2 exit 1 fi diff --git a/bin/x86_64-unknown-cosmo-ar b/bin/x86_64-unknown-cosmo-ar index b43abacf4..bb0a35092 100755 --- a/bin/x86_64-unknown-cosmo-ar +++ b/bin/x86_64-unknown-cosmo-ar @@ -10,7 +10,7 @@ fatal_error() { } if [ ! -x "$COSMO/o/$MODE/tool/build/ar.com" ]; then - fatal_error "you need to run: cosmocc --update" + fatal_error "you need to run: x86_64-unknown-cosmo-cc --update" fi if [ x"$1" = x"rc" ] || diff --git a/bin/x86_64-unknown-cosmo-as b/bin/x86_64-unknown-cosmo-as index 50c484ead..cacf0d6e9 100755 --- a/bin/x86_64-unknown-cosmo-as +++ b/bin/x86_64-unknown-cosmo-as @@ -6,7 +6,7 @@ COSMOS=${COSMOS:-/opt/cosmos} TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-as" if [ ! -x "$TOOL" ]; then - echo "$0: you need to run: cosmocc --update" >&2 + echo "$0: you need to run: x86_64-unknown-cosmo-cc --update" >&2 exit 1 fi diff --git a/bin/x86_64-unknown-cosmo-g++ b/bin/x86_64-unknown-cosmo-g++ deleted file mode 120000 index 978d77998..000000000 --- a/bin/x86_64-unknown-cosmo-g++ +++ /dev/null @@ -1 +0,0 @@ -cosmocc \ No newline at end of file diff --git a/bin/x86_64-unknown-cosmo-gcc b/bin/x86_64-unknown-cosmo-gcc deleted file mode 120000 index 978d77998..000000000 --- a/bin/x86_64-unknown-cosmo-gcc +++ /dev/null @@ -1 +0,0 @@ -cosmocc \ No newline at end of file diff --git a/bin/x86_64-unknown-cosmo-ld b/bin/x86_64-unknown-cosmo-ld deleted file mode 100755 index 54b612f21..000000000 --- a/bin/x86_64-unknown-cosmo-ld +++ /dev/null @@ -1,13 +0,0 @@ -#!/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" "$@" diff --git a/bin/x86_64-unknown-cosmo-objcopy b/bin/x86_64-unknown-cosmo-objcopy index dff5c68ee..9ec84bee4 100755 --- a/bin/x86_64-unknown-cosmo-objcopy +++ b/bin/x86_64-unknown-cosmo-objcopy @@ -6,7 +6,7 @@ COSMOS=${COSMOS:-/opt/cosmos} TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-objcopy" if [ ! -x "$TOOL" ]; then - echo "$0: you need to run: cosmocc --update" >&2 + echo "$0: you need to run: x86_64-unknown-cosmo-cc --update" >&2 exit 1 fi diff --git a/bin/x86_64-unknown-cosmo-objdump b/bin/x86_64-unknown-cosmo-objdump index 301323957..da25e9926 100755 --- a/bin/x86_64-unknown-cosmo-objdump +++ b/bin/x86_64-unknown-cosmo-objdump @@ -6,7 +6,7 @@ COSMOS=${COSMOS:-/opt/cosmos} TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-objdump" if [ ! -x "$TOOL" ]; then - echo "$0: you need to run: cosmocc --update" >&2 + echo "$0: you need to run: x86_64-unknown-cosmo-cc --update" >&2 exit 1 fi diff --git a/bin/x86_64-unknown-cosmo-strip b/bin/x86_64-unknown-cosmo-strip index be368592c..e9dd34ec6 100755 --- a/bin/x86_64-unknown-cosmo-strip +++ b/bin/x86_64-unknown-cosmo-strip @@ -6,7 +6,7 @@ COSMOS=${COSMOS:-/opt/cosmos} TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-strip" if [ ! -x "$TOOL" ]; then - echo "$0: you need to run: cosmocc --update" >&2 + echo "$0: you need to run: x86_64-unknown-cosmo-cc --update" >&2 exit 1 fi