Skip to content

Commit

Permalink
ci: try to save some disk space
Browse files Browse the repository at this point in the history
  • Loading branch information
fw-immunant committed Oct 24, 2024
1 parent fca5f01 commit 07990b5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ cmake -GNinja -DLLVM_ENABLE_PROJECTS="clang" \
-DLLVM_ENABLE_RUNTIMES="compiler-rt" \
-DLLVM_DEFAULT_TARGET_TRIPLE="aarch64-linux-gnu" \
../llvm
ninja clang builtins
ninja clang
# free up disk space by stubbing out files that aren't needed for the next targets
rm -rf _CPack_Packages
for file in lib/libclangStaticAnalyzerCheckers.a lib/libclangCodeGen.a lib/libclangSema.a lib/libclangAST.a lib/libclangStaticAnalyzerCore.a lib/CodeGen/**/CMakeFiles/*.dir/*.o lib/Transforms/**/CMakeFiles/*.dir/*.o; do
mv $file $file.bak
touch $file --reference=$file.bak
rm $file.bak
done
ninja builtins
# copy to expected target triple
cp -arv lib/clang/19/lib/aarch64-linux-gnu lib/clang/19/lib/aarch64-unknown-linux-gnu

0 comments on commit 07990b5

Please sign in to comment.