From d99f0661148ac9d2faffe00b0ca92bae519d9ab6 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Sat, 7 Sep 2024 18:16:05 -0700 Subject: [PATCH] Add clang-format to cosmocc toolchain The clang-format binary is only 6mb so how can we resist? --- tool/cosmocc/package.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tool/cosmocc/package.sh b/tool/cosmocc/package.sh index 245253ecb..6a31d538e 100755 --- a/tool/cosmocc/package.sh +++ b/tool/cosmocc/package.sh @@ -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-*