DivestOS/Patches/LineageOS-17.1/android_build_soong/0002-auto_var_init.patch
Tad 987122f99e Churn
Signed-off-by: Tad <tad@spotco.us>
2022-04-01 02:12:34 -04:00

22 lines
670 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Daniel Micay <danielmicay@gmail.com>
Date: Wed, 8 Apr 2020 10:42:11 -0400
Subject: [PATCH] enable -ftrivial-auto-var-init=zero
---
cc/config/global.go | 1 +
1 file changed, 1 insertion(+)
diff --git a/cc/config/global.go b/cc/config/global.go
index 7c7b47a51..26806ce18 100644
--- a/cc/config/global.go
+++ b/cc/config/global.go
@@ -58,6 +58,7 @@ var (
"-fno-short-enums",
"-funwind-tables",
"-fstack-protector-strong",
+ "-ftrivial-auto-var-init=zero -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang",
"-Wa,--noexecstack",
"-D_FORTIFY_SOURCE=2",