mirror of
https://github.com/glebarez/go-sqlite.git
synced 2025-10-16 21:00:55 +08:00
linux/s390x: generate initial version
This commit is contained in:
10
Makefile
10
Makefile
@@ -41,6 +41,7 @@ build_all_targets:
|
||||
GOOS=linux GOARCH=amd64 go build -v ./...
|
||||
GOOS=linux GOARCH=arm go build -v ./...
|
||||
GOOS=linux GOARCH=arm64 go build -v ./...
|
||||
GOOS=linux GOARCH=s390x go build -v ./...
|
||||
GOOS=windows GOARCH=386 go build -v ./...
|
||||
GOOS=windows GOARCH=amd64 go build -v ./...
|
||||
echo done
|
||||
@@ -69,6 +70,10 @@ linux_arm64:
|
||||
CCGO_CPP=aarch64-linux-gnu-cpp-8 TARGET_GOARCH=arm64 TARGET_GOOS=linux go generate 2>&1 | tee /tmp/log-generate-sqlite-linux-arm64
|
||||
GOOS=linux GOARCH=arm64 go build -v ./...
|
||||
|
||||
linux_s390x:
|
||||
CCGO_CPP=s390x-linux-gnu-cpp TARGET_GOARCH=s390x TARGET_GOOS=linux go generate 2>&1 | tee /tmp/log-generate-sqlite-linux-s390x
|
||||
GOOS=linux GOARCH=s390x go build -v ./...
|
||||
|
||||
windows_amd64:
|
||||
CCGO_CPP=x86_64-w64-mingw32-cpp TARGET_GOOS=windows TARGET_GOARCH=amd64 go generate 2>&1 | tee /tmp/log-generate-sqlite-windows-amd64
|
||||
GOOS=windows GOARCH=amd64 go build -v ./...
|
||||
@@ -77,7 +82,7 @@ windows_386:
|
||||
CCGO_CPP=i686-w64-mingw32-cpp TARGET_GOOS=windows TARGET_GOARCH=386 go generate 2>&1 | tee /tmp/log-generate-sqlite-windows-386
|
||||
GOOS=windows GOARCH=386 go build -v ./...
|
||||
|
||||
all_targets: linux_amd64 linux_386 linux_arm linux_arm64 windows_amd64 windows_386
|
||||
all_targets: linux_amd64 linux_386 linux_arm linux_arm64 linux_s390x windows_amd64 windows_386
|
||||
gofmt -l -s -w .
|
||||
echo done
|
||||
|
||||
@@ -110,6 +115,9 @@ test_linux_arm:
|
||||
test_linux_arm64:
|
||||
GOOS=linux GOARCH=arm64 make test
|
||||
|
||||
test_linux_s390x:
|
||||
GOOS=linux GOARCH=s390x make test
|
||||
|
||||
extraquick:
|
||||
go test -timeout 24h -v -run Tcl -suite extraquick -maxerror 1 2>&1 | tee log-extraquick
|
||||
date
|
||||
|
21
internal/libc2/capi_linux_s390x.go
Normal file
21
internal/libc2/capi_linux_s390x.go
Normal file
@@ -0,0 +1,21 @@
|
||||
// Copyright 2020 The Sqlite Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package libc2 // import "modernc.org/sqlite/internal/libc2"
|
||||
|
||||
var CAPI = map[string]struct{}{
|
||||
"pthread_cond_broadcast": {},
|
||||
"pthread_cond_destroy": {},
|
||||
"pthread_cond_init": {},
|
||||
"pthread_cond_signal": {},
|
||||
"pthread_cond_wait": {},
|
||||
"pthread_create": {},
|
||||
"pthread_detach": {},
|
||||
"pthread_mutex_destroy": {},
|
||||
"pthread_mutex_init": {},
|
||||
"pthread_mutex_lock": {},
|
||||
"pthread_mutex_trylock": {},
|
||||
"pthread_mutex_unlock": {},
|
||||
"sched_yield": {},
|
||||
}
|
6538
internal/mptest/main_linux_s390x.go
Normal file
6538
internal/mptest/main_linux_s390x.go
Normal file
File diff suppressed because it is too large
Load Diff
80771
internal/testfixture/testfixture_linux_s390x.go
Normal file
80771
internal/testfixture/testfixture_linux_s390x.go
Normal file
File diff suppressed because one or more lines are too long
1247
lib/capi_linux_s390x.go
Normal file
1247
lib/capi_linux_s390x.go
Normal file
File diff suppressed because it is too large
Load Diff
@@ -117984,7 +117984,6 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
|
||||
goto __4
|
||||
goto __6
|
||||
__6:
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -173252,7 +173251,6 @@ __15:
|
||||
goto __14
|
||||
goto __16
|
||||
__16:
|
||||
|
||||
}
|
||||
|
||||
// This is a helper function for rbuObjIterCacheTableInfo(). It populates
|
||||
|
185315
lib/sqlite_linux_s390x.go
Normal file
185315
lib/sqlite_linux_s390x.go
Normal file
File diff suppressed because one or more lines are too long
1291
libtest/capi_linux_s390x.go
Normal file
1291
libtest/capi_linux_s390x.go
Normal file
File diff suppressed because it is too large
Load Diff
@@ -119214,7 +119214,6 @@ func Xsqlite3GenerateConstraintChecks(tls *libc.TLS, pParse uintptr, pTab uintpt
|
||||
goto __4
|
||||
goto __6
|
||||
__6:
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174941,7 +174940,6 @@ __15:
|
||||
goto __14
|
||||
goto __16
|
||||
__16:
|
||||
|
||||
}
|
||||
|
||||
// This is a helper function for rbuObjIterCacheTableInfo(). It populates
|
||||
|
188532
libtest/sqlite_linux_s390x.go
Normal file
188532
libtest/sqlite_linux_s390x.go
Normal file
File diff suppressed because one or more lines are too long
7044
speedtest1/main_linux_s390x.go
Normal file
7044
speedtest1/main_linux_s390x.go
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user