From 188f4dd1f48606a96916735218c0ad61388d7910 Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Wed, 7 Feb 2024 08:41:36 +0100 Subject: [PATCH] Update zng/cc.rs Co-authored-by: wcampbell --- zng/cc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zng/cc.rs b/zng/cc.rs index 3fe5a5ee..8065e3f1 100644 --- a/zng/cc.rs +++ b/zng/cc.rs @@ -86,7 +86,7 @@ fn strip_symbol_prefix(input: &Path, output: &Path, get_version: bool) -> String write(&[IoSlice::new(line.as_bytes()), IoSlice::new(b"\n")]); } - if get_version { + if version.is_none() && get_version { if line.contains("ZLIBNG_VERSION") && line.contains("#define") { version = Some(line.split('"').nth(1).unwrap().to_owned()); }