gcc/libgo/go/cmd/cgo
Ian Lance Taylor ea9a08f5df cmd/cgo: make _cgo_flags consistent across runs
The go tool will pass -I objdir as one of the flags, where objdir is
    the temporary build directory. Remove that from _cgo_flags: we don't
    need it, and it will be different each time.
    
    Sort the flags to avoid the unpredictable map iteration order.
    
    This matters for gccgo because for a package that uses cgo, the go
    tool when building for gccgo will store the _cgo_flags file in the
    archive. That means that we want to generate identical _cgo_flags for
    every run.
    
    The test for this is the cmd/go testsuite, to follow in a future CL.
    
    Reviewed-on: https://go-review.googlesource.com/45692

From-SVN: r249199
2017-06-14 13:59:02 +00:00
..
ast.go libgo: update to Go 1.8 release candidate 1 2017-01-14 00:05:42 +00:00
doc.go libgo: update to Go 1.8 release candidate 1 2017-01-14 00:05:42 +00:00
gcc.go cmd/cgo: make _cgo_flags consistent across runs 2017-06-14 13:59:02 +00:00
godefs.go libgo: update to go1.7rc3 2016-07-22 18:15:38 +00:00
main.go libgo: update to Go 1.8 release candidate 1 2017-01-14 00:05:42 +00:00
out.go cmd/cgo: make _cgo_flags consistent across runs 2017-06-14 13:59:02 +00:00
util.go libgo: update to go1.7rc3 2016-07-22 18:15:38 +00:00