From d248b58553e4eb10bbd268ce511e14fb5aca4331 Mon Sep 17 00:00:00 2001 From: Nick DeMarco Date: Tue, 17 Oct 2023 20:44:57 -0400 Subject: [PATCH] Clean up Hylo build directory (#72) --- hylo/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hylo/build.sh b/hylo/build.sh index 01ce901..6ebd7bb 100755 --- a/hylo/build.sh +++ b/hylo/build.sh @@ -52,4 +52,13 @@ mv .build/release/ce_temp_dir/* .build/release # Note: No need to update rpath for `hc` itself, as it is already $ORIGIN by default. rmdir .build/release/ce_temp_dir/ +# Remove Swifty build artifacts not required to run +rm -rf .build/release/*.build +rm -rf .build/release/*.product +rm -rf .build/release/*.swiftdoc +rm -rf .build/release/*.swiftmodule +rm -rf .build/release/*.swiftsourceinfo +rm -rf .build/release/ModuleCache +rm .build/release/description.json + complete .build/release/ "hylo-${VERSION}" "${OUTPUT}"