diff options
Diffstat (limited to 'Magefile.go')
| -rw-r--r-- | Magefile.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Magefile.go b/Magefile.go index 50d2bea..edc106c 100644 --- a/Magefile.go +++ b/Magefile.go @@ -51,19 +51,21 @@ func Default() { // Build compiles the binary. func Build() error { + mg.Deps(BpfBuild) return sh.RunWithV(goEnv(), "go", "build", "-tags", "netgo", "-ldflags", "-w -extldflags \"-static\"", "-o", binaryName, "./cmd/ior/main.go") } // GoBuildRace compiles the binary with the race detector enabled. func GoBuildRace() error { + mg.Deps(BpfBuild) return sh.RunWithV(goEnv(), "go", "build", "-tags", "netgo", "-ldflags", "-w -extldflags \"-static\"", "-race", "-o", binaryName, "./cmd/ior/main.go") } // All builds the BPF object and the Go binary. func All() error { - mg.SerialDeps(BpfBuild, Build) + mg.SerialDeps(Build) return nil } |
