[dpdk-dev] [PATCH 01/10] build: add an option to enable LTO build
bruce.richardson at intel.com
Thu Sep 5 11:51:00 CEST 2019
On Thu, Sep 05, 2019 at 11:43:30AM +0200, Andrzej Ostruszka wrote:
> On 9/5/19 11:36 AM, Bruce Richardson wrote:
> > Should not need a new option here. There is already a built-in option
> > "b_lto" which we can reuse.
> Thank you Bruce, I don't know much about meson so I missed that.
> Will try to figure out how to use that.
The options are documented here: https://mesonbuild.com/Builtin-options.html
and you can query them just the same as with the options added for the
project. Therefore, the only thing that really should change is that in the
meson.build file you check the built-in option and add the fat-lto-objects
Incidentally, I think if the fat-lto-objects flag is not supported you may
want to error out if lto is enabled, as meson will add the lto flag itself
if the option is set.
More information about the dev