DescriptionMake gyp tool to emit FDO Support for android.
To add FDO support for an android static/shared library, one just need to add "LOCAL_FDO_SUPPORT := true" to the library in the mk files. When Android build system sees this flag, it will build the libraries with corresponding FDO flags:
* When built with BUILD_FDO_INSTRUMENT=true, build system will add -fprofile-generate flag to generate instrumented code.
* When built with BUILD_FDO_OPTIMIZE=true, build system will add -fprofile-use flag to generated optimized code.
This patch enables the gyp->mk converting tool to emit correct FDO support to all static libraries in libwebview. It adds an "enable_fdo" variable in the gyp file which tells if the current library needs FDO. If enable_fdo==1, the generated mk file will have FDO enabled.
Additionally, as most of the webview libraries are built with "-Os -finline-limit=64", which contradict with FDO optimization. This patch also added compiler option filtering when FDO is enabled.
BUG=chromium:408567
Patch Set 1 #
Messages
Total messages: 6 (0 generated)
|