make/common/NativeCompilation.gmk
changeset 49270 f6ad4d73c834
parent 49263 78af880eec61
child 49517 a387ee36e5e0
--- a/make/common/NativeCompilation.gmk	Tue Mar 20 11:29:16 2018 -0700
+++ b/make/common/NativeCompilation.gmk	Tue Mar 20 17:42:20 2018 -0700
@@ -827,7 +827,9 @@
           $$(shell $(RM) $$($1_TARGET))
         endif
         $$($1_DEBUGINFO_FILES): $$($1_TARGET)
-		$$(if $$(wildcard $$@), , $$(error $$@ was not created for $$<))
+		$$(if $$(CORRECT_FUNCTION_IN_RECIPE_EVALUATION), \
+		  $$(if $$(wildcard $$@), , $$(error $$@ was not created for $$<)) \
+		)
 		$(TOUCH) $$@
 
         $1 += $$($1_DEBUGINFO_FILES)
@@ -875,7 +877,9 @@
         $$(shell $(RM) $$($1_TARGET))
       endif
       $$($1_IMPORT_LIBRARY): $$($1_TARGET)
-		$$(if $$(wildcard $$@), , $$(error $$@ was not created for $$<))
+		$$(if $$(CORRECT_FUNCTION_IN_RECIPE_EVALUATION), \
+		  $$(if $$(wildcard $$@), , $$(error $$@ was not created for $$<)) \
+		)
 		$(TOUCH) $$@
     endif