diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-03-03 18:18:44 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-03-03 18:18:44 +0800 |
commit | 2b284e73665703da61720f9d33b4f3c13b0e04ed (patch) | |
tree | 78bd2dc7e794d250a44f88d6fd76a2c75d906014 /build/ci.go | |
parent | faf713632c307e3fd77a492481846b858ad991f9 (diff) | |
download | dexon-2b284e73665703da61720f9d33b4f3c13b0e04ed.tar dexon-2b284e73665703da61720f9d33b4f3c13b0e04ed.tar.gz dexon-2b284e73665703da61720f9d33b4f3c13b0e04ed.tar.bz2 dexon-2b284e73665703da61720f9d33b4f3c13b0e04ed.tar.lz dexon-2b284e73665703da61720f9d33b4f3c13b0e04ed.tar.xz dexon-2b284e73665703da61720f9d33b4f3c13b0e04ed.tar.zst dexon-2b284e73665703da61720f9d33b4f3c13b0e04ed.zip |
build: fix xgo argument order when building from make
Diffstat (limited to 'build/ci.go')
-rw-r--r-- | build/ci.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/ci.go b/build/ci.go index 05e95b0f1..4ff63fd7f 100644 --- a/build/ci.go +++ b/build/ci.go @@ -930,9 +930,9 @@ func doXgo(cmdline []string) { // If all tools building is requested, build everything the builder wants args := append(buildFlags(env), flag.Args()...) - args = append(args, []string{"--dest", GOBIN}...) if *alltools { + args = append(args, []string{"--dest", GOBIN}...) for _, res := range allToolsArchiveFiles { if strings.HasPrefix(res, GOBIN) { // Binary tool found, cross build it explicitly @@ -945,6 +945,9 @@ func doXgo(cmdline []string) { return } // Otherwise xxecute the explicit cross compilation + path := args[len(args)-1] + args = append(args[:len(args)-1], []string{"--dest", GOBIN, path}...) + xgo := xgoTool(args) build.MustRun(xgo) } |