c/pthread/sync.Once

This commit is contained in:
xushiwei
2024-06-17 12:14:24 +08:00
parent a819796ce2
commit 72274bda82
6 changed files with 122 additions and 1 deletions

View File

@@ -597,7 +597,7 @@ func llgoPkgLinkFiles(pkg *packages.Package, llFile string, procFile func(linkFi
// files = "file1; file2; ..."
func clFiles(files string, pkg *packages.Package, procFile func(linkFile string), verbose bool) {
dir := filepath.Dir(pkg.CompiledGoFiles[0])
dir := filepath.Dir(pkg.GoFiles[0])
expFile := pkg.ExportFile
for _, file := range strings.Split(files, ";") {
cFile := filepath.Join(dir, strings.TrimSpace(file))