Skip to content
Snippets Groups Projects
Commit 5c3dd42b authored by George Rawlinson's avatar George Rawlinson
Browse files

new upstream release & enable debug build

parent 0a211cdb
No related branches found
Tags 1.17.0-1
No related merge requests found
......@@ -2,7 +2,7 @@
# Contributor: Alkindi42
pkgname=sqlc
pkgver=1.16.0
pkgver=1.17.0
pkgrel=1
pkgdesc='Compile SQL to type-safe Go'
arch=('x86_64')
......@@ -11,7 +11,7 @@ license=('MIT')
depends=('glibc' 'gcc-libs')
makedepends=('git' 'go')
options=('!lto')
_commit='89922d459cc11e2051ef3c37979e6b2223565271'
_commit='fa985d067f22254141dc3e23608adef3a43aa2ef'
source=("$pkgname::git+https://github.com/kyleconroy/sqlc.git#commit=$_commit")
b2sums=('SKIP')
......@@ -38,14 +38,16 @@ build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOPATH="${srcdir}"
# build binary
go build -v \
-trimpath \
-buildmode=pie \
-mod=readonly \
-modcacherw \
-ldflags "-linkmode external -extldflags ${LDFLAGS}" \
-ldflags "-compressdwarf=false \
-linkmode external \
-extldflags ${LDFLAGS}" \
-o build \
./cmd/...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment