Add clang-format to cosmocc toolchain

The clang-format binary is only 6mb so how can we resist?
This commit is contained in:
Justine Tunney 2024-09-07 18:16:05 -07:00
parent 4754f200ee
commit d99f066114
No known key found for this signature in database
GPG key ID: BE714B4575D6E328

View file

@ -180,12 +180,13 @@ if [ ! -x bin/x86_64-linux-cosmo-gcc ]; then
wait
unzip aarch64-gcc.zip &
unzip x86_64-gcc.zip &
unzip llvm.zip bin/clang-19 &
unzip llvm.zip bin/clang-19 bin/clang-format &
wait
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-format bin/clang-format
fi
rm -f bin/*-cpp
rm -f bin/*-gcc-*