mirror of
https://github.com/gyscos/zstd-rs
synced 2024-10-18 05:42:38 +00:00
Disable -flto=thin on GNU compilers
This commit is contained in:
parent
f9ece88244
commit
75bf78cee9
|
@ -138,7 +138,13 @@ fn compile_zstd() {
|
|||
|
||||
config.define("ZSTD_LIB_DEPRECATED", Some("0"));
|
||||
|
||||
config.flag_if_supported("-flto=thin");
|
||||
if config.get_compiler().is_like_gnu() {
|
||||
config.flag_if_supported("-fwhopr");
|
||||
} else {
|
||||
// gcc has a -flto but not -flto=thin
|
||||
// Apparently this is causing crashes on windows-gnu?
|
||||
config.flag_if_supported("-flto=thin");
|
||||
}
|
||||
|
||||
#[cfg(feature = "thin")]
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue