Merge "Make the build fail when the executable prebuilt target check fails." am: dee171a859
Original change: https://android-review.googlesource.com/c/platform/build/+/1442940 Change-Id: I72ee25277f0bf1315990e212acbc38ce0d957f4c
This commit is contained in:
@@ -151,7 +151,7 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PREBUILT_MODULE_FILE)
|
||||
ifeq ($(LOCAL_IS_HOST_MODULE) $(if $(filter EXECUTABLES SHARED_LIBRARIES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),true,),true true)
|
||||
$(copy-or-link-prebuilt-to-target)
|
||||
ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
|
||||
[ -x $@ ] || $(call echo-error,$@,Target of symlink is not executable)
|
||||
[ -x $@ ] || ( $(call echo-error,$@,Target of symlink is not executable); false )
|
||||
endif
|
||||
else
|
||||
$(transform-prebuilt-to-target)
|
||||
|
@@ -60,7 +60,7 @@ $(LOCAL_BUILT_MODULE): $(LOCAL_PREBUILT_MODULE_FILE)
|
||||
ifeq ($(LOCAL_IS_HOST_MODULE) $(if $(filter EXECUTABLES SHARED_LIBRARIES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),true,),true true)
|
||||
$(copy-or-link-prebuilt-to-target)
|
||||
ifneq ($(filter EXECUTABLES NATIVE_TESTS,$(LOCAL_MODULE_CLASS)),)
|
||||
[ -x $@ ] || $(call echo-error,$@,Target of symlink is not executable)
|
||||
[ -x $@ ] || ( $(call echo-error,$@,Target of symlink is not executable); false )
|
||||
endif
|
||||
else
|
||||
$(transform-prebuilt-to-target)
|
||||
|
Reference in New Issue
Block a user