Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rayforce-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ build = "build.rs"

[build-dependencies]
bindgen = "0.70"
cc = "1"

[lib]
doctest = false
11 changes: 11 additions & 0 deletions rayforce-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ fn main() {
sanitize_libclang_path();
build_core_lib(&core);

// --- vendored KDB+ IPC client (csrc/kdb_ipc.c) ---
// Compiled here and linked BEFORE librayforce so its undefined `ray_*`
// symbols resolve from the core archive. (Staging spot until it moves into
// the engine proper.)
cc::Build::new()
.file("csrc/kdb_ipc.c")
.include(&include)
.warnings(false)
.compile("rkdb");
println!("cargo:rerun-if-changed=csrc/kdb_ipc.c");

// --- linking ---
println!("cargo:rustc-link-search=native={}", core.display());
println!("cargo:rustc-link-lib=static=rayforce");
Expand Down
Loading
Loading