Skip to content

Commit e89fd99

Browse files
restore comment
1 parent 566ffba commit e89fd99

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/timer/rust_bindings/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ fn main() {
66
let nim_src = manifest.join("../timer.nim");
77
let nim_src = nim_src.canonicalize().unwrap_or(manifest.join("../timer.nim"));
88

9+
// Walk up to find the nim-ffi repo root (directory containing nim_src's library)
10+
// The repo root is where nim c should be run from (contains config.nims).
11+
// We assume nim_src lives somewhere under repo_root.
12+
// Derive repo_root as the ancestor that contains the .nimble file or config.nims.
913
let mut repo_root = nim_src.clone();
1014
loop {
1115
repo_root = match repo_root.parent() {

0 commit comments

Comments
 (0)