Bug 1099345 - Do not run the Android SDK code generator tool in parallel r=nalexander

This commit is contained in:
James Willcox 2014-11-26 17:52:08 -06:00
parent 74313d0f7e
commit 56ad1aaa3b

View File

@ -2,6 +2,10 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Bug 1099345 - The SDK's lint code (used by the code generator) does not enjoy
# concurrent access to a cache that it generates.
.NOTPARALLEL:
annotation_processor_jar_files := $(DEPTH)/build/annotationProcessors/annotationProcessors.jar:$(ANDROID_TOOLS)/lib/lint.jar:$(ANDROID_TOOLS)/lib/lint-checks.jar
sdk_processor := \
@ -15,7 +19,7 @@ sdk_processor := \
# MediaCodec-classes.txt. This formulation invokes the SDK processor
# at most once.
%.cpp %.h: $(ANDROID_SDK)/android.jar %-classes.txt FORCE
%.cpp %.h: $(ANDROID_SDK)/android.jar %-classes.txt
$(sdk_processor) $(ANDROID_SDK)/android.jar $(srcdir)/$*-classes.txt $(CURDIR) $* 16
# We'd like these to be defined in a future GENERATED_EXPORTS list.