Skip to content

Commit d1fa395

Browse files
committed
fix rebase issues
1 parent 4e6989c commit d1fa395

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/build/compile.rs

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,6 @@ fn compile_file(
611611
implementation: Implementation { path, .. },
612612
..
613613
}) => {
614-
// we need to copy the source file to the build directory.
615-
// editor tools expects the source file in lib/bs for finding the current package
616-
// and in lib/ocaml when referencing modules in other packages
617-
618614
// update: we now generate the file in lib/bs/... and then install it in the right
619615
// in-source location if the hash is different
620616

@@ -635,19 +631,12 @@ fn compile_file(
635631
_ => {
636632
// copy the file to the in-source location
637633
let _ = std::fs::copy(
638-
std::path::Path::new(&package.get_bs_build_path()).join(path),
634+
std::path::Path::new(&package.get_build_path()).join(path),
639635
std::path::Path::new(&package.path).join(path),
640636
)
641637
.expect("copying source file failed");
642638
}
643639
}
644-
645-
let _ = std::fs::copy(
646-
std::path::Path::new(&package.path).join(path),
647-
std::path::Path::new(&package.get_ocaml_build_path())
648-
.join(std::path::Path::new(path).file_name().unwrap()),
649-
)
650-
.expect("copying source file failed");
651640
}
652641
_ => (),
653642
}

0 commit comments

Comments
 (0)