chore: drop the cmd.c cmdCount/cmdLine shim

The shim existed to satisfy Nim's cmdCount/cmdLine globals, which the static
library referenced when it pulled in the command-line machinery. Nothing in
liblogosdelivery.a (nor any archive on the link line) references either symbol
now, and a clean rebuild of the workspace and the basic example links without
it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Ivan FB 2026-07-16 17:03:33 +02:00
parent 1b25e5c327
commit 6d56b9b523
No known key found for this signature in database
GPG Key ID: DF0C67A04C543270
2 changed files with 0 additions and 18 deletions

View File

@ -182,11 +182,6 @@ fn emit_link_flags(nwaku_path: &Path) {
println!("cargo:rustc-link-lib=static={librln}");
// libbacktrace is not linked: the vendor builds with -d:disable_libbacktrace.
cc::Build::new()
.file("src/cmd.c") // Compile the C file
.compile("cmditems"); // Compile it as a library
println!("cargo:rustc-link-lib=static=cmditems");
}
#[cfg(not(doc))]

View File

@ -1,13 +0,0 @@
/*
This file is needed to avoid errors like the following when linking the waku-sys lib crate:
<<undefined reference to `cmdCount'>>
and
<<undefined reference to `cmdLine'>>
*/
#include <stdio.h>
int cmdCount = 0;
char** cmdLine = NULL;