diff options
author | 2021-09-08 21:26:32 +0100 | |
---|---|---|
committer | 2021-09-08 21:26:32 +0100 | |
commit | a027da0ac9b6aa10fe26a7a0c5eea35859b1c270 (patch) | |
tree | 23b954a01a64f2751b3f774052c296fcaa8068e3 /vendor/modernc.org/ccgo/v3/lib/ccgo.go | |
parent | Merge pull request #196 from NyaaaWhatsUpDoc/update/oauth-library (diff) | |
parent | Merge remote-tracking branch 'upstream/main' into update/sqlite-library (diff) | |
download | gotosocial-a027da0ac9b6aa10fe26a7a0c5eea35859b1c270.tar.xz |
Merge pull request #198 from NyaaaWhatsUpDoc/update/sqlite-library
Update/sqlite library
Diffstat (limited to 'vendor/modernc.org/ccgo/v3/lib/ccgo.go')
-rw-r--r-- | vendor/modernc.org/ccgo/v3/lib/ccgo.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vendor/modernc.org/ccgo/v3/lib/ccgo.go b/vendor/modernc.org/ccgo/v3/lib/ccgo.go index 65ccccc95..7865ab8f6 100644 --- a/vendor/modernc.org/ccgo/v3/lib/ccgo.go +++ b/vendor/modernc.org/ccgo/v3/lib/ccgo.go @@ -36,7 +36,7 @@ import ( ) const ( - Version = "3.9.2-20210323171250" + Version = "3.10.0-20210904132603" experimentsEnvVar = "CCGO_EXPERIMENT" maxSourceLine = 1 << 20 @@ -1213,7 +1213,7 @@ func (t *Task) createCompileDB(command []string) (rerr error) { var parser func(s string) ([]string, error) out: switch { - case t.goos == "darwin": + case t.goos == "darwin", t.goos == "freebsd": if command[0] != "make" { return fmt.Errorf("usupported build command: %s", command[0]) } @@ -1566,6 +1566,7 @@ func (w *cdbMakeWriter) Write(b []byte) (int, error) { w.fail(err) continue } + if len(args) == 0 { continue } @@ -1577,15 +1578,15 @@ func (w *cdbMakeWriter) Write(b []byte) (int, error) { err = nil switch args[0] { case w.cc: - fmt.Println(args) + fmt.Printf("CCGO CC: %q\n", args) err = w.handleGCC(args) case w.ar: if isCreateArchive(args[1]) { - fmt.Println(args) + fmt.Printf("CCGO AR: %q\n", args) err = w.handleAR(args) } case "libtool": - fmt.Println(args) + fmt.Printf("CCGO LIBTOOL: %q\n", args) err = w.handleLibtool(args) } if err != nil { |