Skip to content

Commit

Permalink
Add clang-format to cosmocc toolchain
Browse files Browse the repository at this point in the history
The clang-format binary is only 6mb so how can we resist?
  • Loading branch information
jart committed Sep 8, 2024
1 parent 4754f20 commit d99f066
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tool/cosmocc/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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-*
Expand Down

0 comments on commit d99f066

Please sign in to comment.