Skip to content

Commit abe9b27

Browse files
committed
Debug Generating 0 modules
1 parent e8039e8 commit abe9b27

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,12 @@ fn make_modules_and_alises(
105105
.and_then(|s| SupportedModule::try_from_opencv_name(&s.to_lowercase()))
106106
}))
107107
.collect::<HashSet<_>>();
108+
eprintln!("=== Enabled OpenCV modules from the environment: {enable_modules:#?}");
108109

109-
let mut modules = files_with_extension(opencv_dir, "hpp")?
110+
let files_hpp = files_with_extension(opencv_dir, "hpp")?.collect::<Vec<_>>();
111+
eprintln!("=== Found HPP files: {files_hpp:#?}");
112+
let mut modules = files_hpp
113+
.into_iter()
110114
.filter_map(|entry| {
111115
entry
112116
.file_stem()
@@ -127,6 +131,7 @@ fn make_modules_and_alises(
127131
};
128132

129133
modules.sort_unstable();
134+
eprintln!("=== Final OpenCV modules to be built: {modules:#?}");
130135
Ok((modules, aliases))
131136
}
132137

0 commit comments

Comments
 (0)