Skip to content

Commit 499c100

Browse files
committed
[build] ifdef Rust extension in lnav_commands
1 parent 772ad39 commit 499c100

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/lnav_commands.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,9 @@ com_add_src_path(exec_context& ec,
245245
return ec.make_error("expecting file name to open");
246246
}
247247

248+
#if !defined(HAVE_RUST_DEPS)
249+
return ec.make_error("source paths are not supported in this build");
250+
#else
248251
auto pat = trim(remaining_args(cmdline, args));
249252
std::string retval;
250253

@@ -291,6 +294,7 @@ com_add_src_path(exec_context& ec,
291294
if (!ec.ec_dry_run) {
292295
lnav_rs_ext::discover_srcs();
293296
}
297+
#endif
294298
return Ok(retval);
295299
}
296300

0 commit comments

Comments
 (0)