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 40492ac commit 3711565Copy full SHA for 3711565
build.rs
@@ -10,16 +10,6 @@ fn main() {
10
.expect("Unable to parse 'llvm-sys' crate")
11
.write_declarations(&std::path::PathBuf::from(out_dir).join("llvm_gen.rs"))
12
.expect("Unable to write generated LLVM declarations");
13
-
14
- // Workaround for `cargo package`
15
- // `cargo metadata` creates a new Cargo.lock file, which needs removing
16
- let manifest_dir = std::env::var_os("CARGO_MANIFEST_DIR").unwrap();
17
- let cargo_lock = std::path::PathBuf::from(manifest_dir).join("Cargo.lock");
18
- if let Err(err) = std::fs::remove_file(&cargo_lock) {
19
- if err.kind() != std::io::ErrorKind::NotFound {
20
- panic!("failed to delete {}: {err}", cargo_lock.display());
21
- }
22
23
}
24
25
mod llvm {
0 commit comments