Skip to content

Commit

Permalink
Also fix 3846
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Aug 6, 2024
1 parent e239c77 commit f66c6d6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions go/tools/builders/compilepkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"errors"
"flag"
"fmt"
"io/ioutil"
"os"
"path"
"path/filepath"
Expand Down Expand Up @@ -330,7 +329,7 @@ func compileArchive(
// Also run cgo on original source files, not coverage instrumented, if using nogo.
// The compilation outputs are only used to run cgo, but the generated sources are
// passed to the separate nogo action via cgoGoSrcsForNogoPath.
_, _, _, err = cgo2(goenv, goSrcsNogo, cgoSrcsNogo, cSrcs, cxxSrcs, objcSrcs, objcxxSrcs, sSrcs, hSrcs, packagePath, packageName, cc, cppFlags, cFlags, cxxFlags, objcFlags, objcxxFlags, ldFlags, cgoExportHPath, cgoGoSrcsForNogoPath)
_, _, _, err = cgo2(goenv, goSrcsNogo, cgoSrcsNogo, cSrcs, cxxSrcs, objcSrcs, objcxxSrcs, sSrcs, hSrcs, packagePath, packageName, cc, cppFlags, cFlags, cxxFlags, objcFlags, objcxxFlags, ldFlags, "", cgoGoSrcsForNogoPath)
if err != nil {
return err
}
Expand All @@ -345,7 +344,7 @@ func compileArchive(
gcFlags = append(gcFlags, createTrimPath(gcFlags, srcDir))
} else {
if cgoExportHPath != "" {
if err := ioutil.WriteFile(cgoExportHPath, nil, 0o666); err != nil {
if err := os.WriteFile(cgoExportHPath, nil, 0o666); err != nil {
return err
}
}
Expand Down

0 comments on commit f66c6d6

Please sign in to comment.