Perform some more touchups to toolchain

This commit is contained in:
Justine Tunney 2023-08-13 15:03:09 -07:00
parent d1b937bf1d
commit 2366848db5
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
16 changed files with 9 additions and 39 deletions

View file

@ -1 +0,0 @@
cosmocc

View file

@ -1 +0,0 @@
cosmocc

View file

@ -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" "$@"

View file

@ -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() {

View file

@ -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() {

View file

@ -1 +0,0 @@
fatcosmocc

View file

@ -1 +0,0 @@
fatcosmocc

View file

@ -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

View file

@ -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" ] ||

View file

@ -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

View file

@ -1 +0,0 @@
cosmocc

View file

@ -1 +0,0 @@
cosmocc

View file

@ -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" "$@"

View file

@ -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

View file

@ -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

View file

@ -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