We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1700a6e commit baeeda1Copy full SHA for baeeda1
build.rs
@@ -126,7 +126,15 @@ fn build_cpp(files: Vec<String>, language: &str) {
126
}
127
128
fn build_dir(dir: &str, language: &str) {
129
- eprintln!("Build language {}", language);
+ println!("Build language {}", language);
130
+ if PathBuf::from(dir).read_dir().unwrap().next().is_none() {
131
+ eprintln!(
132
+ "The directory {} is empty, did you use 'git clone --recursive'?",
133
+ dir
134
+ );
135
+ eprintln!("You can fix in using 'git submodule init && git submodule update --recursive'.");
136
+ std::process::exit(1);
137
+ }
138
let (c, cpp) = collect_src_files(&dir);
139
if !c.is_empty() {
140
build_c(c, &language);
0 commit comments