mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 06:48:31 +00:00
Perform some more touchups to toolchain
This commit is contained in:
parent
d1b937bf1d
commit
2366848db5
16 changed files with 9 additions and 39 deletions
|
@ -1 +0,0 @@
|
||||||
cosmocc
|
|
|
@ -1 +0,0 @@
|
||||||
cosmocc
|
|
|
@ -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" "$@"
|
|
|
@ -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
|
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||||
PARTICULAR PURPOSE.
|
PARTICULAR PURPOSE.
|
||||||
EOF
|
EOF
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ x"$1" = x"--help" ]; then
|
if [ x"$1" = x"--help" ]; then
|
||||||
|
@ -26,6 +27,7 @@ Usage: $PROG INPUT OUTPUT
|
||||||
Converts an executable linked by cosmocc to the Actually Portable
|
Converts an executable linked by cosmocc to the Actually Portable
|
||||||
Executable file format. See $PROG --version for other details.
|
Executable file format. See $PROG --version for other details.
|
||||||
EOF
|
EOF
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fatal_error() {
|
fatal_error() {
|
||||||
|
|
|
@ -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
|
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
|
||||||
PARTICULAR PURPOSE.
|
PARTICULAR PURPOSE.
|
||||||
EOF
|
EOF
|
||||||
exit 0
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fatal_error() {
|
fatal_error() {
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
fatcosmocc
|
|
|
@ -1 +0,0 @@
|
||||||
fatcosmocc
|
|
|
@ -6,7 +6,7 @@ COSMOS=${COSMOS:-/opt/cosmos}
|
||||||
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-addr2line"
|
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-addr2line"
|
||||||
|
|
||||||
if [ ! -x "$TOOL" ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ fatal_error() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ ! -x "$COSMO/o/$MODE/tool/build/ar.com" ]; then
|
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
|
fi
|
||||||
|
|
||||||
if [ x"$1" = x"rc" ] ||
|
if [ x"$1" = x"rc" ] ||
|
||||||
|
|
|
@ -6,7 +6,7 @@ COSMOS=${COSMOS:-/opt/cosmos}
|
||||||
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-as"
|
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-as"
|
||||||
|
|
||||||
if [ ! -x "$TOOL" ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
cosmocc
|
|
|
@ -1 +0,0 @@
|
||||||
cosmocc
|
|
|
@ -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" "$@"
|
|
|
@ -6,7 +6,7 @@ COSMOS=${COSMOS:-/opt/cosmos}
|
||||||
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-objcopy"
|
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-objcopy"
|
||||||
|
|
||||||
if [ ! -x "$TOOL" ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ COSMOS=${COSMOS:-/opt/cosmos}
|
||||||
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-objdump"
|
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-objdump"
|
||||||
|
|
||||||
if [ ! -x "$TOOL" ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ COSMOS=${COSMOS:-/opt/cosmos}
|
||||||
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-strip"
|
TOOL="$COSMO/o/third_party/gcc/bin/x86_64-linux-musl-strip"
|
||||||
|
|
||||||
if [ ! -x "$TOOL" ]; then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue