Skip to content

Commit

Permalink
Revert "Explicitly build the rlib"
Browse files Browse the repository at this point in the history
This reverts commit 596c582.

It should fix #322.
  • Loading branch information
lu-zero committed May 22, 2023
1 parent 3c299d5 commit 3c35fed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
7 changes: 0 additions & 7 deletions example-project/tests/rust.rs

This file was deleted.

4 changes: 1 addition & 3 deletions src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn patch_target(
let manifest = pkg.manifest_mut();
let targets = manifest.targets_mut();

let mut kinds: Vec<_> = libkinds
let kinds: Vec<_> = libkinds
.iter()
.map(|&kind| match kind {
"staticlib" => CrateType::Staticlib,
Expand All @@ -120,8 +120,6 @@ fn patch_target(
})
.collect();

kinds.push(CrateType::Lib);

for target in targets.iter_mut() {
if target.is_lib() {
target.set_kind(TargetKind::Lib(kinds.clone()));
Expand Down

0 comments on commit 3c35fed

Please sign in to comment.