feat: update crossbuilder to tagged version and update go linker (#26064)
* feat: update crossbuilder and ldflags for go * feat: Update build_windows for build-tests script this includes a CGO_LDFLAGS env var when running go-test-compilepull/26080/head
parent
248022800a
commit
4689f21687
|
@ -7,7 +7,7 @@ orbs:
|
|||
parameters:
|
||||
cross-container-tag:
|
||||
type: string
|
||||
default: go1.23.5-latest
|
||||
default: go1.23.5-ba67b11de54aa0bf8f1f92a81f786205de8024b6
|
||||
|
||||
workflow:
|
||||
type: string
|
||||
|
|
|
@ -29,6 +29,7 @@ function build_mac () {
|
|||
}
|
||||
|
||||
function build_windows () {
|
||||
CGO_LDFLAGS="-lntdll -ladvapi32 -lkernel32 -luserenv -lws2_32" \
|
||||
CGO_ENABLED=1 PKG_CONFIG=$(which pkg-config) CC="$(xcc windows)" go-test-compile \
|
||||
-tags sqlite_foreign_keys,sqlite_json,timetzdata -o "${1}/" -x ./...
|
||||
}
|
||||
|
|
|
@ -47,6 +47,7 @@ function main () {
|
|||
"$pkg"
|
||||
;;
|
||||
windows_amd64)
|
||||
export CGO_LDFLAGS="-lntdll -ladvapi32 -lkernel32 -luserenv -lws2_32 ${CGO_LDFLAGS}"
|
||||
export CC="$(xcc windows)"
|
||||
CGO_ENABLED=1 PKG_CONFIG=$(which pkg-config) go build \
|
||||
-tags assets,sqlite_foreign_keys,sqlite_json,timetzdata \
|
||||
|
|
Loading…
Reference in New Issue