diff --git a/core/release_config.mk b/core/release_config.mk index 5fe3d3905a..e3ec3a06d3 100644 --- a/core/release_config.mk +++ b/core/release_config.mk @@ -133,7 +133,7 @@ ifneq (,$(_use_protobuf)) _flags_file:=$(OUT_DIR)/soong/release-config/release_config-$(TARGET_PRODUCT)-$(TARGET_RELEASE).vars # release-config generates $(_flags_varmk) _flags_varmk:=$(_flags_file:.vars=.varmk) - $(shell $(OUT_DIR)/release-config $(_args) >$(OUT_DIR)/release-config.out 2>&1 && touch -t 200001010000 $(_flags_varmk)) + $(shell $(OUT_DIR)/release-config $(_args) >$(OUT_DIR)/release-config.out && touch -t 200001010000 $(_flags_varmk)) $(if $(filter-out 0,$(.SHELLSTATUS)),$(error release-config failed to run)) ifneq (,$(_final_product_config_pass)) # Save the final version of the config.