From 97ca72f7f10619d4d2a3f7cd19cd8f3f7308d60f Mon Sep 17 00:00:00 2001 From: pca006132 Date: Thu, 6 Jan 2022 14:04:04 +0800 Subject: [PATCH] libunwind: enable lto --- src/libunwind/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libunwind/build.rs b/src/libunwind/build.rs index 51dc16c..0c06c67 100644 --- a/src/libunwind/build.rs +++ b/src/libunwind/build.rs @@ -23,6 +23,7 @@ mod llvm_libunwind { cfg.flag("-fno-stack-protector"); cfg.flag("--target=armv7-none-eabihf"); cfg.flag("-O2"); + cfg.flag("-flto"); cfg.flag("-std=c99"); cfg.flag("-fstrict-aliasing");