Skip to content

Commit 0cc9cea

Browse files
author
TheBestLL
committed
build: update README with platform-specific build commands
Added detailed build instructions for darwin, linux, and windows platforms in the README. This includes specifying CGO_ENABLED and CC environment variables for linux and windows builds to ensure static linking.
1 parent 5fa217e commit 0cc9cea

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,12 @@ func main() {
4141

4242
## Build
4343

44-
go build -tags=sqlite_vtable
44+
* darwin
45+
> go build -tags=sqlite_vtable
46+
* linux
47+
> CGO_ENABLED=1 GOOS=linux CC="x86_64-linux-musl-gcc" GOARCH=amd64 go build -tags=sqlite_vtable -ldflags "-s -w --extldflags "-static""
48+
* windows
49+
> CGO_ENABLED=1 GOOS=windows CC="x86_64-w64-mingw32-gcc" GOARCH=amd64 go build -tags=sqlite_vtable
4550
4651
## Playground
4752
```sql

0 commit comments

Comments
 (0)