@ -1610,7 +1610,7 @@ func alterTrimpath(flags []string) []string {
return flagSetValue ( flags , "-trimpath" , sharedTempDir + "=>;" + trimpath )
return flagSetValue ( flags , "-trimpath" , sharedTempDir + "=>;" + trimpath )
}
}
// buildFlags is obtained from 'go help build' as of Go 1.1 5 .
// buildFlags is obtained from 'go help build' as of Go 1.1 6 .
var buildFlags = map [ string ] bool {
var buildFlags = map [ string ] bool {
"-a" : true ,
"-a" : true ,
"-n" : true ,
"-n" : true ,
@ -1635,10 +1635,10 @@ var buildFlags = map[string]bool{
"-tags" : true ,
"-tags" : true ,
"-trimpath" : true ,
"-trimpath" : true ,
"-toolexec" : true ,
"-toolexec" : true ,
"-overlay" : true ,
}
}
// booleanFlags is obtained from 'go help build' and 'go help testflag' as of Go
// booleanFlags is obtained from 'go help build' and 'go help testflag' as of Go 1.16.
// 1.15.
var booleanFlags = map [ string ] bool {
var booleanFlags = map [ string ] bool {
// Shared build flags.
// Shared build flags.
"-a" : true ,
"-a" : true ,