NoSenseEtAl
NoSenseEtAl

Reputation: 30148

Can CMake automatically handle addition of -ffat-lto-objects depending on downstream dependencies

As you may know GCC can produce fat or thin LTO objects, fat are needed if you will not be using the resulting object with LTO linking. I have a project with hundreds of targets, it is hard to track which libraries need to be built as fat lto and which ones do not.

Is there some way in CMake to conditionally add -ffat-lto-objects to build of a library only if it is used in non LTO linking?

Upvotes: 2

Views: 108

Answers (0)

Related Questions