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

Commit

Permalink
compatible with old golang version
Browse files Browse the repository at this point in the history
  • Loading branch information
joyhope committed Apr 18, 2018
1 parent 2ed9e0d commit c4ed1cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,8 @@ func (t *gcToolchain) Gc(pkg *Package, files []string) error {
args = append(args, "-I", d)
}

if pkg.Goroot {
// runtime compiles with a special gc flag to emit
// additional reflect type data.
if (version.Version > 1.8) && pkg.Goroot {
// stdlib with special std flag
args = append(args, "-std")
}

Expand Down

1 comment on commit c4ed1cd

@joyhope
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix 1.9.4 cross compile problem, compatible with old golang.

Please sign in to comment.