@@ -336,9 +336,9 @@ func (compile) long() bool { return false }
336
336
337
337
func (c compile ) run (name string , count int ) error {
338
338
// Make sure dependencies needed by go tool compile are installed to GOROOT/pkg.
339
- out , err := exec .Command (* flagGoCmd , "build" , "-i " , c .dir ).CombinedOutput ()
339
+ out , err := exec .Command (* flagGoCmd , "build" , "-a " , c .dir ).CombinedOutput ()
340
340
if err != nil {
341
- return fmt .Errorf ("go build -i %s: %v\n %s" , c .dir , err , out )
341
+ return fmt .Errorf ("go build -a %s: %v\n %s" , c .dir , err , out )
342
342
}
343
343
344
344
// Find dir and source file list.
@@ -406,9 +406,9 @@ func (r link) run(name string, count int) error {
406
406
}
407
407
408
408
// Build dependencies.
409
- out , err := exec .Command (* flagGoCmd , "build" , "-i " , "-o" , "/dev/null" , r .dir ).CombinedOutput ()
409
+ out , err := exec .Command (* flagGoCmd , "build" , "-a " , "-o" , "/dev/null" , r .dir ).CombinedOutput ()
410
410
if err != nil {
411
- return fmt .Errorf ("go build -i %s: %v\n %s" , r .dir , err , out )
411
+ return fmt .Errorf ("go build -a %s: %v\n %s" , r .dir , err , out )
412
412
}
413
413
414
414
// Build the main package.
0 commit comments