summaryrefslogtreecommitdiff
path: root/Toolchain/BuildClang.sh
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2021-08-08 23:16:26 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-08-08 23:54:00 +0200
commit657fbc1e6cd1b4b2635f0fe8453f34637d5b4383 (patch)
tree75e80818dec4ae26ea05432605461c0ee9981ae4 /Toolchain/BuildClang.sh
parentd3595477d8cc2d0324ec6f18649636a439ae232c (diff)
downloadserenity-657fbc1e6cd1b4b2635f0fe8453f34637d5b4383.zip
Toolchain: Remove static LLVM libraries
We link against these dynamically anyways, so having them around is not useful. Removing them frees precious storage space on CI.
Diffstat (limited to 'Toolchain/BuildClang.sh')
-rwxr-xr-xToolchain/BuildClang.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/Toolchain/BuildClang.sh b/Toolchain/BuildClang.sh
index 5c4f3dfba3..1900d31f53 100755
--- a/Toolchain/BuildClang.sh
+++ b/Toolchain/BuildClang.sh
@@ -392,6 +392,9 @@ pushd "$DIR/Build/clang/$ARCH"
popd
popd
+# === REMOVE UNNECESSARY BUILD ARTIFACTS ===
+rm -r "$PREFIX"/lib/libclang*.a "$PREFIX"/lib/libLLVM*.a "$PREFIX"/lib/liblld*.a
+
# === SAVE TO CACHE ===
pushd "$DIR"
if [ "$TRY_USE_LOCAL_TOOLCHAIN" = "y" ]; then