mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 13:03:39 +00:00
cgo: support builtin #include headers
Add support for header files bundled with the compiler by copying them into the release tarball.
This commit is contained in:
committed by
Ron Evans
parent
d396abb690
commit
2f2d62cc0c
@@ -217,8 +217,9 @@ func (c *Compiler) Compile(mainPath string) error {
|
||||
MaxAlign: int64(c.targetData.PrefTypeAlignment(c.i8ptrType)),
|
||||
},
|
||||
},
|
||||
Dir: wd,
|
||||
CFlags: c.CFlags,
|
||||
Dir: wd,
|
||||
TinyGoRoot: c.RootDir,
|
||||
CFlags: c.CFlags,
|
||||
}
|
||||
if strings.HasSuffix(mainPath, ".go") {
|
||||
_, err = lprogram.ImportFile(mainPath)
|
||||
|
||||
Reference in New Issue
Block a user