Rollup merge of #60983 - petrhosek:libunwind-no-exceptions, r=alexcrichton
Set -funwind-tables and -fno-exceptions unconditionally for LLVM's libunwind These are required otherwise libunwind will end up with undefined references to __gxx_personality_v0 which is provided by C++ ABI library and that's undesirable.
This commit is contained in:
commit
0c97800f93
@ -67,13 +67,10 @@ mod llvm_libunwind {
|
||||
cfg.flag("-std=c99");
|
||||
cfg.flag("-std=c++11");
|
||||
cfg.flag("-nostdinc++");
|
||||
if cfg.is_flag_supported("-funwind-tables").unwrap_or_default() &&
|
||||
cfg.is_flag_supported("-fno-exceptions").unwrap_or_default() {
|
||||
cfg.flag("-funwind-tables");
|
||||
cfg.flag("-fno-exceptions");
|
||||
}
|
||||
cfg.flag("-fno-exceptions");
|
||||
cfg.flag("-fno-rtti");
|
||||
cfg.flag("-fstrict-aliasing");
|
||||
cfg.flag("-funwind-tables");
|
||||
}
|
||||
|
||||
let mut unwind_sources = vec![
|
||||
|
Loading…
Reference in New Issue
Block a user