We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be60f97 commit 9203ca0Copy full SHA for 9203ca0
1 file changed
build.rs
@@ -128,8 +128,12 @@ fn build_cpp(files: Vec<String>, language: &str) {
128
fn build_dir(dir: &str, language: &str) {
129
eprintln!("Build language {}", language);
130
let (c, cpp) = collect_src_files(&dir);
131
- build_c(c, &language);
132
- build_cpp(cpp, &language);
+ if !c.is_empty() {
+ build_c(c, &language);
133
+ }
134
+ if !cpp.is_empty() {
135
+ build_cpp(cpp, &language);
136
137
}
138
139
fn main() {
0 commit comments