Skip to content

Commit 71037e8

Browse files
committed
fix(ci): Rust cfg parse error, Go cgo missing include, Python lib path
- Fix root Cargo.toml malformed cfg: cfg(unix(all(not(...)))) -> cfg(unix) - Add #include "gf16.h" to Go cgo preamble (was missing, all C names unresolved) - Add zig-out/bin to Python library search paths for CI compatibility
1 parent 8c94806 commit 71037e8

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ readme = "README.md"
1414
reqwest = { version = "0.12", features = ["blocking"] }
1515

1616
[dependencies]
17-
[target.'cfg(unix(all(not(target_os = "windows")))'.dependencies]
17+
[target.'cfg(unix)'.dependencies]
1818
libc = "0.2"
1919

2020
[[bin]]

go/goldenfloat/gf16.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ package goldenfloat
88
/*
99
#cgo LDFLAGS: -L../../zig-out/lib -lgoldenfloat
1010
#cgo CFLAGS: -I../../src/c
11+
#include "gf16.h"
1112
*/
1213
import "C"
1314

python/goldenfloat/_binding.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ def _find_library():
1919
# Check zig-out/lib first
2020
search_paths = [
2121
os.path.join(os.path.dirname(__file__), "..", "..", "zig-out", "lib"),
22+
os.path.join(os.path.dirname(__file__), "..", "..", "zig-out", "bin"),
2223
os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "zig-out", "lib"),
24+
os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "zig-out", "bin"),
2325
]
2426

2527
# Add current directory for development

0 commit comments

Comments
 (0)