Re-org the merge_zips logiic under Turbine rule.
Mac java build has flaky error for merge_zips. The error happend is because both turbine.jar.premerged and static_java_libs are missing. We allow one of them can be missing, but we don't allow both of them are missing. So re-org the merge_zips logic to see if the input of Turbine is empty or it is due to Turbine internal. Bug: b/66441248 Test: m clean && m -j32 Change-Id: I3c4b15004fd67fef2b83eabc36841bc8c8ff6e4c
This commit is contained in:
parent
bedc2110b7
commit
fda45fdbe1
1 changed files with 1 additions and 3 deletions
|
@ -2290,9 +2290,7 @@ $(hide) if [ -s $(PRIVATE_JAVA_SOURCE_LIST) ] ; then \
|
|||
--javacopts $(PRIVATE_JAVACFLAGS) $(COMMON_JDK_FLAGS) \
|
||||
$(addprefix --classpath ,$(strip \
|
||||
$(call normalize-path-list,$(PRIVATE_ALL_JAVA_HEADER_LIBRARIES)))) \
|
||||
|| ( rm -rf $(dir $@)/classes-turbine ; exit 41 ) \
|
||||
fi
|
||||
$(hide) if [ -s $@.premerged ] ; then \
|
||||
|| ( rm -rf $(dir $@)/classes-turbine ; exit 41 ) && \
|
||||
$(MERGE_ZIPS) -j -stripDir META-INF $@.tmp $@.premerged $(call reverse-list,$(PRIVATE_STATIC_JAVA_HEADER_LIBRARIES)) ; \
|
||||
else \
|
||||
$(MERGE_ZIPS) -j -stripDir META-INF $@.tmp $(call reverse-list,$(PRIVATE_STATIC_JAVA_HEADER_LIBRARIES)) ; \
|
||||
|
|
Loading…
Reference in a new issue