Enable Clang's -ftrivial-auto-var-init=zero on 17.1

Just like Android 11+

Signed-off-by: Tad <tad@spotco.us>
This commit is contained in:
Tad 2022-03-31 22:04:50 -04:00
parent e26908b9e0
commit 8dbdc0f31e
2 changed files with 22 additions and 0 deletions

View file

@ -101,6 +101,7 @@ fi;
if enterAndClear "build/soong"; then
applyPatch "$DOS_PATCHES/android_build_soong/0001-Enable_fwrapv.patch"; #Use -fwrapv at a minimum (GrapheneOS)
applyPatch "$DOS_PATCHES/android_build_soong/0002-auto_var_init.patch"; #Enable -ftrivial-auto-var-init=zero (GrapheneOS)
fi;
if enterAndClear "device/qcom/sepolicy-legacy"; then