add ya make ThinLTO support
@@ -482,6 +482,18 @@ module BASE_UNIT {
}
}
+ when ($USE_THINLTO == "yes") {
+ when ($GCC) {
+ CFLAGS+=-flto=thin
+ LDFLAGS+=-flto=thin
+ }
+ when ($CLANG) {
+ CFLAGS+=-flto=thin
+ LDFLAGS+=-flto=thin
+ }
+ }
+
+
when ($CLANG) {
when ($PGO_ADD == "yes") {
CFLAGS+=-fprofile-instr-generate
