[v9.3.x] build: fix corss build (#63262)
build: fix corss build (#61121)
* build: fix corss build
* fix lint
(cherry picked from commit 37baae3699)
Co-authored-by: Jimmie Han <hanjinming@outlook.com>
This commit is contained in:
committed by
GitHub
parent
587bbf20d3
commit
4f4921ad01
+5
-3
@@ -146,6 +146,11 @@ func setup(goos string) {
|
||||
|
||||
func doBuild(binaryName, pkg string, opts BuildOpts) error {
|
||||
log.Println("building", binaryName, pkg)
|
||||
|
||||
if err := setBuildEnv(opts); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
libcPart := ""
|
||||
if opts.libc != "" {
|
||||
libcPart = fmt.Sprintf("-%s", opts.libc)
|
||||
@@ -194,9 +199,6 @@ func doBuild(binaryName, pkg string, opts BuildOpts) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
if err := setBuildEnv(opts); err != nil {
|
||||
return err
|
||||
}
|
||||
runPrint("go", "version")
|
||||
libcPart = ""
|
||||
if opts.libc != "" {
|
||||
|
||||
Reference in New Issue
Block a user