Skip to content

Commit 5069406

Browse files
committed
Update languages
1 parent bddb2ca commit 5069406

4 files changed

Lines changed: 667 additions & 654 deletions

File tree

build.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,13 @@ fn build_cpp(files: Vec<String>, language: &str) {
127127

128128
fn build_dir(dir: &str, language: &str) {
129129
println!("Build language {}", language);
130-
if PathBuf::from(dir).read_dir().unwrap().next().is_none() {
130+
if PathBuf::from(get_cwd())
131+
.join(dir)
132+
.read_dir()
133+
.unwrap()
134+
.next()
135+
.is_none()
136+
{
131137
eprintln!(
132138
"The directory {} is empty, did you use 'git clone --recursive'?",
133139
dir

0 commit comments

Comments
 (0)