Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
Do not pass --build-id=none unless cc == clang
Browse files Browse the repository at this point in the history
Fixes #345
  • Loading branch information
davecheney committed Sep 8, 2015
1 parent 2c86a9b commit d942a61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ func rungcc3(ctx *Context, dir string, ofile string, ofiles []string) error {
if err != nil {
return nil
}
args = append(args, libgcc, "-Wl,--build-id=none")
args = append(args, libgcc)
} else {
// explicitly disable build-id when using clang
args = append(args, "-Wl,--build-id=none")
}
t0 := time.Now()
err := run(dir, nil, gcc(), args...)
Expand Down

0 comments on commit d942a61

Please sign in to comment.