Skip to content

Commit d99f066

Browse files
committed
Add clang-format to cosmocc toolchain
The clang-format binary is only 6mb so how can we resist?
1 parent 4754f20 commit d99f066

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tool/cosmocc/package.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,13 @@ if [ ! -x bin/x86_64-linux-cosmo-gcc ]; then
180180
wait
181181
unzip aarch64-gcc.zip &
182182
unzip x86_64-gcc.zip &
183-
unzip llvm.zip bin/clang-19 &
183+
unzip llvm.zip bin/clang-19 bin/clang-format &
184184
wait
185185
rm -f aarch64-gcc.zip
186186
rm -f x86_64-gcc.zip
187187
rm -f llvm.zip
188188
mv bin/clang-19 bin/cosmo-clang
189+
mv bin/clang-format bin/clang-format
189190
fi
190191
rm -f bin/*-cpp
191192
rm -f bin/*-gcc-*

0 commit comments

Comments
 (0)