Skip to content

Commit cb7be88

Browse files
committed
GO-3980 Fix SIGSEGV in musl version
1 parent aa8e992 commit cb7be88

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

rust/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[package]
22
name = "tantivy-go"
3-
version = "0.1.0"
3+
version = "0.2.0"
44
edition = "2021"
55
build = "src/build.rs"
66

77
[lib]
88
crate-type = ["staticlib"]
99

1010
[build-dependencies]
11-
cbindgen = "0.26.0"
11+
cbindgen = "0.27.0"
1212

1313
[dependencies]
1414
tantivy = "0.22.0"
15-
cbindgen = "0.26.0"
15+
cbindgen = "0.27.0"
1616
log = "0.4.21"
1717
base64 = "0.22.1"
1818
env_logger = "0.11.3"

rust/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ setup:
1414
@rustup target add x86_64-apple-darwin
1515
@rustup target add x86_64-pc-windows-gnu
1616

17+
# strange SIGSEGV at higher levels of optimization
1718
build-linux-amd64-musl:
18-
env TARGET_CC=x86_64-linux-musl-gcc cargo build --release --target x86_64-unknown-linux-musl
19+
env TARGET_CC=x86_64-linux-musl-gcc RUSTFLAGS='-C opt-level=1' cargo build --release --target x86_64-unknown-linux-musl
1920

2021
install-linux-amd64-musl: build-linux-amd64-musl
2122
@mkdir -p ../libs/linux-amd64-musl

typedef_unix32.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ package tantivy_go
55
import "C"
66

77
type pointerCType = C.uint
8-
type pointerGoType = uint64

typedef_unix64.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ package tantivy_go
55
import "C"
66

77
type pointerCType = C.ulong
8-
type pointerGoType = uint64

typedef_win64.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ package tantivy_go
55
import "C"
66

77
type pointerCType = C.ulonglong
8-
type pointerGoType = uint64

0 commit comments

Comments
 (0)