diff options
author | Filippo Valsorda <filippo@cloudflare.com> | 2016-09-03 20:02:56 +0100 |
---|---|---|
committer | Filippo Valsorda <filippo@cloudflare.com> | 2016-09-03 20:02:56 +0100 |
commit | 98981b4a3bc61c9f76cd54c691f1262041973c3e (patch) | |
tree | f6c611864de6fd26b0f54a5fd73c8d4a10413f40 /doc.go | |
parent | Merge pull request #322 from a-p-/backup-tests (diff) | |
download | golite-98981b4a3bc61c9f76cd54c691f1262041973c3e.tar.gz golite-98981b4a3bc61c9f76cd54c691f1262041973c3e.tar.xz |
Make Go 1.7 fail compilation
The package is useless without cgo, but Go 1.7 will happily build it
since doc.go is a pure-Go file, even if CGO_ENABLED=0, like when
cross-compiling.
This is particularly problematic since the package is usually imported
for its side effects, and users would successfully build a broken binary.
Workaround golang/go#16981
Diffstat (limited to 'doc.go')
-rw-r--r-- | doc.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -110,3 +110,5 @@ See the documentation of RegisterFunc for more details. */ package sqlite3 + +import "C" |