Skip to content

Commit 8461a6c

Browse files
committed
fix(c-generator): add missing xxhash.h dependency to include tree
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
1 parent 8d80d4a commit 8461a6c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/generator/c/mod.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ pub fn generate(fs: &FeatureSet, args: &CArgs, out: &Path, use_fetch: bool) -> R
5353
// them. This catches implicit dependencies like vulkan_video_codecs_common.h
5454
// which are #include'd by other vk_video headers but never declared in the
5555
// XML spec.
56-
let mut queue: Vec<String> = fs.required_headers.clone();
56+
//
57+
// xxhash.h is always needed by the generated .c (extension hash search).
58+
// It is not spec-derived so it is not in fs.required_headers.
59+
let mut queue: Vec<String> = std::iter::once("xxhash.h".to_string())
60+
.chain(fs.required_headers.iter().cloned())
61+
.collect();
5762
let mut visited: std::collections::HashSet<String> = std::collections::HashSet::new();
5863

5964
while let Some(hdr_path) = queue.pop() {

0 commit comments

Comments
 (0)