Skip to content

Commit

Permalink
Remove LTO for static function wrappers. (#305)
Browse files Browse the repository at this point in the history
LTO doesn't works good with rust-lld.
Remove LTO to fix the link issue #304.
  • Loading branch information
xiaoyuxlu authored Aug 11, 2023
1 parent c274ee9 commit 2b90f02
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion mbedtls-sys/build/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ impl BuildConfig {
cc.flag("-ffreestanding");
}
cc
.flag_if_supported("-flto=thin")
.file(&self.static_wrappers_c)
.compile("libstatic-wrappers.a");
}
Expand Down

0 comments on commit 2b90f02

Please sign in to comment.