mirror of
https://github.com/glebarez/go-sqlite.git
synced 2025-10-05 15:56:52 +08:00
fix sqlite build for windows
This commit is contained in:
@@ -23,6 +23,8 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"log"
|
||||||
|
|
||||||
"github.com/cznic/cc"
|
"github.com/cznic/cc"
|
||||||
"github.com/cznic/ccir"
|
"github.com/cznic/ccir"
|
||||||
"github.com/cznic/internal/buffer"
|
"github.com/cznic/internal/buffer"
|
||||||
@@ -30,7 +32,6 @@ import (
|
|||||||
"github.com/cznic/strutil"
|
"github.com/cznic/strutil"
|
||||||
"github.com/cznic/virtual"
|
"github.com/cznic/virtual"
|
||||||
"github.com/cznic/xc"
|
"github.com/cznic/xc"
|
||||||
"log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -139,6 +140,7 @@ func build(predef string, tus [][]string, opts ...cc.Opt) ([]*cc.TranslationUnit
|
|||||||
cc.AllowCompatibleTypedefRedefinitions(),
|
cc.AllowCompatibleTypedefRedefinitions(),
|
||||||
cc.EnableImplicitFuncDef(),
|
cc.EnableImplicitFuncDef(),
|
||||||
cc.EnableNonConstStaticInitExpressions(),
|
cc.EnableNonConstStaticInitExpressions(),
|
||||||
|
cc.EnableWideBitFieldTypes(),
|
||||||
cc.ErrLimit(*errLimit),
|
cc.ErrLimit(*errLimit),
|
||||||
cc.SysIncludePaths([]string{ccir.LibcIncludePath}),
|
cc.SysIncludePaths([]string{ccir.LibcIncludePath}),
|
||||||
}, opts...)...,
|
}, opts...)...,
|
||||||
|
Reference in New Issue
Block a user