Move cosmo-clang to libexec

The cosmo-clang command shouldn't be in the bin/ folder of cosmocc. It's
intended as an implementation detail of `cosmocc -mclang`.

Fixes #1317
This commit is contained in:
Justine Tunney 2024-10-21 22:55:15 -07:00
parent 26663dea9c
commit 4e44517c9c
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
2 changed files with 5 additions and 5 deletions

View file

@ -89,10 +89,10 @@ use_gcc() {
use_clang() {
CLANG=1
CC_X86_64="$BIN/cosmo-clang"
CC_AARCH64="$BIN/cosmo-clang"
CXX_X86_64="$BIN/cosmo-clang"
CXX_AARCH64="$BIN/cosmo-clang"
CC_X86_64="$BIN/../libexec/clang"
CC_AARCH64="$BIN/../libexec/clang"
CXX_X86_64="$BIN/../libexec/clang"
CXX_AARCH64="$BIN/../libexec/clang"
TARGET_X86_64="--target=x86_64"
TARGET_AARCH64="--target=aarch64"
FPORTCOSMO=

View file

@ -185,7 +185,7 @@ if [ ! -x bin/x86_64-linux-cosmo-gcc ]; then
rm -f aarch64-gcc.zip
rm -f x86_64-gcc.zip
rm -f llvm.zip
mv bin/clang-19 bin/cosmo-clang
mv bin/clang-19 libexec/clang # use `cosmocc -mclang` instead
fi
rm -f bin/*-cpp
rm -f bin/*-gcc-*