aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-11-30 13:01:20 +0100
committerAyke van Laethem <[email protected]>2018-12-10 15:38:03 +0100
commit6cacafb8dc0351c2204cefedcd83864df6591d3d (patch)
tree239dce4133fd45d9564f37992ccbe9e9c25cf757 /main.go
parentc6069476a7d7f16bbd000004bf574a46d5d2222f (diff)
downloadtinygo-6cacafb8dc0351c2204cefedcd83864df6591d3d.tar.gz
tinygo-6cacafb8dc0351c2204cefedcd83864df6591d3d.zip
cgo: add package directory to header include paths
Diffstat (limited to 'main.go')
-rw-r--r--main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.go b/main.go
index 1bcd01c43..c1a311f24 100644
--- a/main.go
+++ b/main.go
@@ -44,6 +44,7 @@ func Compile(pkgName, outpath string, spec *TargetSpec, config *BuildConfig, act
compilerConfig := compiler.Config{
Triple: spec.Triple,
GC: config.gc,
+ CFlags: spec.CFlags,
Debug: config.debug,
DumpSSA: config.dumpSSA,
RootDir: sourceDir(),