aboutsummaryrefslogtreecommitdiff
path: root/generator.go
diff options
context:
space:
mode:
authorJan Mercl <0xjnml@gmail.com>2017-07-15 14:51:15 +0200
committerJan Mercl <0xjnml@gmail.com>2017-07-15 14:51:15 +0200
commitd7e92b1258ca219a1be522f9d84dee7e29b94bc4 (patch)
treeef9b555f89c2d2f958e19fa429195a6c41b32e93 /generator.go
parent4c91ab146ab47496fbde3e0381993ccd590f4427 (diff)
Regenerate Linux/amd64 using latest CCGO.
modified: generator.go modified: internal/bin/bin_linux_amd64.go modified: internal/mptest/mptest_linux_amd64.go modified: internal/threadtest1/threadtest1_linux_amd64.go modified: internal/threadtest2/threadtest2_linux_amd64.go modified: internal/threadtest3/threadtest3_linux_amd64.go modified: internal/threadtest4/threadtest4_linux_amd64.go
Diffstat (limited to 'generator.go')
-rw-r--r--generator.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/generator.go b/generator.go
index 41ae3eb..663ad81 100644
--- a/generator.go
+++ b/generator.go
@@ -409,7 +409,7 @@ func sqlite() {
{filepath.Join(pth, "sqlite3.h")},
{"main.c"},
},
- []ccgo.Option{ccgo.Library()},
+ []ccgo.Option{ccgo.Library(), ccgo.LibcTypes()},
cc.EnableAnonymousStructFields(),
cc.IncludePaths([]string{pth}),
)
@@ -420,7 +420,7 @@ func sqlite() {
{sqlite3},
{"main.c"},
},
- []ccgo.Option{ccgo.Library()},
+ []ccgo.Option{ccgo.Library(), ccgo.LibcTypes()},
cc.EnableAnonymousStructFields(),
cc.IncludePaths([]string{pth}),
)
@@ -468,7 +468,7 @@ func mpTest() {
{filepath.Join(sqlitePth, "sqlite3.c")},
{test},
},
- []ccgo.Option{ccgo.Packages([]string{"bin"})},
+ []ccgo.Option{ccgo.Packages([]string{"bin"}), ccgo.LibcTypes()},
cc.EnableAnonymousStructFields(),
cc.IncludePaths([]string{sqlitePth}),
)
@@ -514,7 +514,7 @@ func threadTest1() {
{filepath.Join(sqlitePth, "sqlite3.c")},
{test},
},
- []ccgo.Option{ccgo.Packages([]string{"bin"})},
+ []ccgo.Option{ccgo.Packages([]string{"bin"}), ccgo.LibcTypes()},
cc.EnableAnonymousStructFields(),
cc.IncludePaths([]string{".", sqlitePth, filepath.Join(repo, "sqlite-src-"+version, "src")}),
)
@@ -559,7 +559,7 @@ func threadTest2() {
{filepath.Join(sqlitePth, "sqlite3.c")},
{test},
},
- []ccgo.Option{ccgo.Packages([]string{"bin"})},
+ []ccgo.Option{ccgo.Packages([]string{"bin"}), ccgo.LibcTypes()},
cc.EnableAnonymousStructFields(),
cc.IncludePaths([]string{".", sqlitePth, filepath.Join(repo, "sqlite-src-"+version, "src")}),
)
@@ -606,7 +606,7 @@ func threadTest3() {
{filepath.Join(repo, "sqlite-src-"+version, "src", "test_multiplex.c")},
{test},
},
- []ccgo.Option{ccgo.Packages([]string{"bin"})},
+ []ccgo.Option{ccgo.Packages([]string{"bin"}), ccgo.LibcTypes()},
cc.EnableAnonymousStructFields(),
cc.IncludePaths([]string{".", sqlitePth, filepath.Join(repo, "sqlite-src-"+version, "src")}),
)
@@ -651,7 +651,7 @@ func threadTest4() {
{filepath.Join(sqlitePth, "sqlite3.c")},
{test},
},
- []ccgo.Option{ccgo.Packages([]string{"bin"})},
+ []ccgo.Option{ccgo.Packages([]string{"bin"}), ccgo.LibcTypes()},
cc.EnableAnonymousStructFields(),
cc.IncludePaths([]string{".", sqlitePth, filepath.Join(repo, "sqlite-src-"+version, "src")}),
)