From d01ea714e2697238a3bf42012ad7397493502951 Mon Sep 17 00:00:00 2001 From: Jihoon Kang Date: Wed, 8 May 2024 01:01:12 +0000 Subject: [PATCH] Revert^2 "Remove obsolete java compilation artifacts" This reverts commit 132fceec4c28cd66b505b6dc459bf671e2c4ed22. Reason for revert: CleanSpec.mk files are not meant to be reverted. Change-Id: I72ad8d1b610f67525c905634f77b4d12849dbe30 --- CleanSpec.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CleanSpec.mk b/CleanSpec.mk index dfc0cd0fff..19fc6399c0 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -779,6 +779,10 @@ $(call add-clean-step, rm -rf $(OUT_DIR)/bazel/output/execroot/__main__/bazel-ou # Clear out rustc compiler intermediates after reverting rust compiler/linker split. $(call add-clean-step, find $(OUT_DIR) -name "*.rsp.whole.a" -print0 | xargs -0 /bin/bash -c 'rm -f $$$${@}; rm -f $$$${@/.rsp.whole.a/.rsp.a}; rm -f $$$${@/.rsp.whole.a/.rsp}') +# Remove obsolete java compilation artifacts +$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/) +$(call add-clean-step, find $(OUT_DIR) -type f -name "*.jar" -print0 | xargs -0 rm -f) + # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************