Way to set compiler optimization flags for native libraries (e.g. -march, -mtune, etc)?
#21761
qwertychouskie
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
NativeAOT builds include separate
libHarfBuzzSharp.soandlibSkiaSharp.solibraries; when targeting a slow device (e.g. Raspberry Pi 3) it'd be nice to compile these with options tuned to the architecture and needs of the project, e.g. something liek this for an rpi3:-mcpu=cortex-a53 -mtune=cortex-a53 -Os -ftree-vectorize -ffast-math -flto -mno-track-speculation -mharden-sls=noneAlso, if there are other native libs statically included in the binary, it'd be good to compile them with the same flags.
All reactions