Skip to content

Commit

Permalink
Move cosmo-clang to libexec
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jart committed Oct 22, 2024
1 parent 26663de commit 4e44517
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tool/cosmocc/bin/cosmocc
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion tool/cosmocc/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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-*
Expand Down

0 comments on commit 4e44517

Please sign in to comment.