aboutsummaryrefslogtreecommitdiffhomepage
path: root/loader
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2024-01-17 15:55:07 +0100
committerAyke van Laethem <[email protected]>2024-01-18 20:19:15 +0100
commit53db436a7d3bdfe7682c97e21fe1249a29156a35 (patch)
tree33ae159dd096abc4205d2928590421d07592e470 /loader
parent0ad15551c84c39d53a9aef1c20c9e9ed8c9e1110 (diff)
downloadtinygo-53db436a7d3bdfe7682c97e21fe1249a29156a35.tar.gz
tinygo-53db436a7d3bdfe7682c97e21fe1249a29156a35.zip
cgo: add file AST for fake C file locations
This is needed for the type checker, otherwise it doesn't know which Go version it should use for type checking.
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 ccc72aeac..9b46aa614 100644
--- a/loader/loader.go
+++ b/loader/loader.go
@@ -447,7 +447,7 @@ func (p *Package) parseFiles() ([]*ast.File, error) {
if errs != nil {
fileErrs = append(fileErrs, errs...)
}
- files = append(files, generated)
+ files = append(files, generated...)
p.program.LDFlags = append(p.program.LDFlags, ldflags...)
}