aboutsummaryrefslogtreecommitdiffhomepage
path: root/loader
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2022-04-13 21:34:43 +0200
committerRon Evans <[email protected]>2022-09-16 14:05:17 +0200
commit5551ec7a1ed9d59764cfdf5a73b23dc40365a6f8 (patch)
tree0fcff842574327f6615ed0909ed57efaf726dba5 /loader
parent91104b2f276348e251a25e9e58e7faafe781358f (diff)
downloadtinygo-5551ec7a1ed9d59764cfdf5a73b23dc40365a6f8.tar.gz
tinygo-5551ec7a1ed9d59764cfdf5a73b23dc40365a6f8.zip
cgo: implement support for static functions
Diffstat (limited to 'loader')
-rw-r--r--loader/loader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/loader.go b/loader/loader.go
index cc577da9d..ca0d46355 100644
--- a/loader/loader.go
+++ b/loader/loader.go
@@ -440,7 +440,7 @@ func (p *Package) parseFiles() ([]*ast.File, error) {
var initialCFlags []string
initialCFlags = append(initialCFlags, p.program.config.CFlags()...)
initialCFlags = append(initialCFlags, "-I"+p.Dir)
- generated, headerCode, cflags, ldflags, accessedFiles, errs := cgo.Process(files, p.program.workingDir, p.program.fset, initialCFlags, p.program.clangHeaders)
+ generated, headerCode, cflags, ldflags, accessedFiles, errs := cgo.Process(files, p.program.workingDir, p.ImportPath, p.program.fset, initialCFlags, p.program.clangHeaders)
p.CFlags = append(initialCFlags, cflags...)
p.CGoHeaders = headerCode
for path, hash := range accessedFiles {