I am trying to use LTO in my code base. I used -flto
flag during compile and link time both. It created fat objects but the binary generated after linking remained same as was without using LTO (No difference is size or performance).
Then I decided to use fno-fat-lto-objects
flag, so that only LTO compatible object file is generated. But during compilation it threw error :
cc1plus: error: -fno-fat-lto-objects are supported only with linker plugin
I think I am not able to use LTO at link time and hence no difference in binaries.
Can anyone help in overcoming the above error?