Consolidate cflags that are set on all devices

Move cflags that are set on all devices to deviceGlobalCflags:
-fno-canonical-system-headers
-ffunction-sections
-funwind-tables
-fstack-protector-strong
-Wa,--noexecstack
-D_FORTIFY_SOURCE=2
-Wstrict-aliasing=2
-Werror=format-security

Bug: 68855788
Test: m checkbuild
Change-Id: Iefec689fdd2749013d0cc003b3abec674a85fb74
This commit is contained in:
Colin Cross
2017-11-02 22:55:19 -07:00
parent 7278afc5a8
commit 133dbe7bb0
7 changed files with 10 additions and 49 deletions

View File

@@ -22,18 +22,10 @@ import (
var (
x86Cflags = []string{
"-Wa,--noexecstack",
"-Werror=format-security",
"-D_FORTIFY_SOURCE=2",
"-Wstrict-aliasing=2",
"-ffunction-sections",
"-finline-functions",
"-finline-limit=300",
"-fno-short-enums",
"-funswitch-loops",
"-funwind-tables",
"-fstack-protector-strong",
"-fno-canonical-system-headers",
}
x86ClangCflags = append(x86Cflags, []string{