Skip to content

Commit

Permalink
enable cgo to fix mage error
Browse files Browse the repository at this point in the history
  • Loading branch information
hoptical committed Nov 17, 2021
1 parent 495fa15 commit 24e8386
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Magefile.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build mage
//go:build mage
// +build mage

package main

Expand All @@ -15,3 +16,8 @@ func Hello() {

// Default configures the default target.
var Default = build.BuildAll

var _ = build.SetBeforeBuildCallback(func(cfg build.Config) (build.Config, error) {
cfg.EnableCGo = true
return cfg, nil
})

0 comments on commit 24e8386

Please sign in to comment.