libunwind: enable lto

exception
pca006132 2022-01-06 14:04:04 +08:00
parent acaf388dbb
commit 97ca72f7f1
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ mod llvm_libunwind {
cfg.flag("-fno-stack-protector"); cfg.flag("-fno-stack-protector");
cfg.flag("--target=armv7-none-eabihf"); cfg.flag("--target=armv7-none-eabihf");
cfg.flag("-O2"); cfg.flag("-O2");
cfg.flag("-flto");
cfg.flag("-std=c99"); cfg.flag("-std=c99");
cfg.flag("-fstrict-aliasing"); cfg.flag("-fstrict-aliasing");