Skip to content

Commit 4e44517

Browse files
committed
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
1 parent 26663de commit 4e44517

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tool/cosmocc/bin/cosmocc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ use_gcc() {
8989

9090
use_clang() {
9191
CLANG=1
92-
CC_X86_64="$BIN/cosmo-clang"
93-
CC_AARCH64="$BIN/cosmo-clang"
94-
CXX_X86_64="$BIN/cosmo-clang"
95-
CXX_AARCH64="$BIN/cosmo-clang"
92+
CC_X86_64="$BIN/../libexec/clang"
93+
CC_AARCH64="$BIN/../libexec/clang"
94+
CXX_X86_64="$BIN/../libexec/clang"
95+
CXX_AARCH64="$BIN/../libexec/clang"
9696
TARGET_X86_64="--target=x86_64"
9797
TARGET_AARCH64="--target=aarch64"
9898
FPORTCOSMO=

tool/cosmocc/package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ if [ ! -x bin/x86_64-linux-cosmo-gcc ]; then
185185
rm -f aarch64-gcc.zip
186186
rm -f x86_64-gcc.zip
187187
rm -f llvm.zip
188-
mv bin/clang-19 bin/cosmo-clang
188+
mv bin/clang-19 libexec/clang # use `cosmocc -mclang` instead
189189
fi
190190
rm -f bin/*-cpp
191191
rm -f bin/*-gcc-*

0 commit comments

Comments
 (0)