summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/sqlite/generator.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2022-05-09 23:00:23 +0200
committerGitHub <noreply@github.com>2022-05-09 23:00:23 +0200
commit1e55dd47f251ae588fb418ac29cbc6a0ae741e69 (patch)
treeb3b930c3f864d82ebeb079fcfbbf570b1620ca3f /vendor/modernc.org/sqlite/generator.go
parent700b95546b4fbc4bbd094ab1804406c13634d7e2 (diff)
downloadmatterbridge-msglm-1e55dd47f251ae588fb418ac29cbc6a0ae741e69.tar.gz
matterbridge-msglm-1e55dd47f251ae588fb418ac29cbc6a0ae741e69.tar.bz2
matterbridge-msglm-1e55dd47f251ae588fb418ac29cbc6a0ae741e69.zip
Update dependencies (#1831)
Diffstat (limited to 'vendor/modernc.org/sqlite/generator.go')
-rw-r--r--vendor/modernc.org/sqlite/generator.go26
1 files changed, 22 insertions, 4 deletions
diff --git a/vendor/modernc.org/sqlite/generator.go b/vendor/modernc.org/sqlite/generator.go
index a3a04481..9490d7c6 100644
--- a/vendor/modernc.org/sqlite/generator.go
+++ b/vendor/modernc.org/sqlite/generator.go
@@ -10,6 +10,7 @@ package main
import (
"archive/zip"
"bufio"
+ "flag"
"fmt"
"io"
"io/ioutil"
@@ -253,12 +254,12 @@ var (
sz int
dev bool
}{
- {sqliteDir, "https://www.sqlite.org/2022/sqlite-amalgamation-3380200.zip", 2457, false},
- {sqliteSrcDir, "https://www.sqlite.org/2022/sqlite-src-3380200.zip", 12814, false},
+ {sqliteDir, "https://www.sqlite.org/2022/sqlite-amalgamation-3380500.zip", 2457, false},
+ {sqliteSrcDir, "https://www.sqlite.org/2022/sqlite-src-3380500.zip", 12814, false},
}
- sqliteDir = filepath.FromSlash("testdata/sqlite-amalgamation-3380200")
- sqliteSrcDir = filepath.FromSlash("testdata/sqlite-src-3380200")
+ sqliteDir = filepath.FromSlash("testdata/sqlite-amalgamation-3380500")
+ sqliteSrcDir = filepath.FromSlash("testdata/sqlite-src-3380500")
)
func download() {
@@ -372,7 +373,12 @@ func fail(s string, args ...interface{}) {
os.Exit(1)
}
+var (
+ oFullPathComments = flag.Bool("full-path-comments", false, "")
+)
+
func main() {
+ flag.Parse()
fmt.Printf("Running on %s/%s.\n", runtime.GOOS, runtime.GOARCH)
env := os.Getenv("GO_GENERATE")
goarch := runtime.GOARCH
@@ -651,6 +657,7 @@ func makeTestfixture(goos, goarch string, more []string) {
fmt.Sprintf("-I%s", sqliteDir),
fmt.Sprintf("-I%s", sqliteSrcDir),
},
+ otherOpts(),
files,
more,
configTest,
@@ -661,6 +668,13 @@ func makeTestfixture(goos, goarch string, more []string) {
}
}
+func otherOpts() (r []string) {
+ if *oFullPathComments {
+ r = append(r, "-full-path-comments")
+ }
+ return r
+}
+
func makeSpeedTest(goos, goarch string, more []string) {
task := ccgo.NewTask(
join(
@@ -674,6 +688,7 @@ func makeSpeedTest(goos, goarch string, more []string) {
fmt.Sprintf("-I%s", sqliteDir),
"-l", "modernc.org/sqlite/lib",
},
+ otherOpts(),
more,
configProduction,
),
@@ -698,6 +713,7 @@ func makeMpTest(goos, goarch string, more []string) {
fmt.Sprintf("-I%s", sqliteDir),
"-l", "modernc.org/sqlite/lib",
},
+ otherOpts(),
more,
configProduction,
),
@@ -726,6 +742,7 @@ func makeSqliteProduction(goos, goarch string, more []string) {
"-trace-translation-units",
filepath.Join(sqliteDir, "sqlite3.c"),
},
+ otherOpts(),
more,
configProduction,
),
@@ -755,6 +772,7 @@ func makeSqliteTest(goos, goarch string, more []string) {
volatiles,
filepath.Join(sqliteDir, "sqlite3.c"),
},
+ otherOpts(),
more,
configTest,
),