From 34336bd9f382512bda42711526031a6d94bd01df Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Wed, 2 Feb 2011 22:37:40 -0500 Subject: [PATCH] cgo: fix _cgo_run timestamp file order The timestamp file is being created before cgo runs, which means errors will not prevent it from being created and thus will cause the build to break by rendering the rule up-to-date when it isn't. R=rsc CC=golang-dev https://golang.org/cl/4001049 --- src/Make.pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Make.pkg b/src/Make.pkg index 0ffab72945..41124c828a 100644 --- a/src/Make.pkg +++ b/src/Make.pkg @@ -113,8 +113,8 @@ dir: ifdef CGOFILES _cgo_run: $(CGOFILES) - @touch _cgo_run CGOPKGPATH=$(dir) cgo -- $(CGO_CFLAGS) $(CGOFILES) + touch _cgo_run # _CGO_CFLAGS and _CGO_LDFLAGS are defined via the evaluation of _cgo_flags. # The include happens before the commands in the recipe run, -- 2.50.0