Skip to content

Commit

Permalink
fix: directory dependency linking
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmasoldi3r committed Dec 16, 2023
1 parent 968e96c commit 2e86685
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion janus/src/compilation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ impl CompilationHost {
}
OutputFormat::Directory => {
let pb = get_bar(objects.len() as u64 + 1);
for entry in objects.iter() {
for entry in glob::glob("./dist/cache/objects/**/*.lua").unwrap() {
let entry = entry.expect("Failed to resolve glob dep on directory");
let base_target = entry.strip_prefix(&objects_base_path).unwrap();
let target = target_base_path.join(base_target);
pb.set_message(format!("Linking {:?}...", &target));
Expand Down

0 comments on commit 2e86685

Please sign in to comment.