Allow custom ar flags to be set.

Adds the ability to set custom flags for ar in Soong, similar to how
they can currently be set for make.

Bug: 36290748
Test: sanitize.go is able to correct set custom ar flags for CFI. CFI
enabled Soong components build and boot without issue.

Change-Id: I3212793aa84ba51df910c184d8bb376b3650376e
This commit is contained in:
Vishwath Mohan
2017-03-16 11:01:23 -07:00
parent a8b5502773
commit 83d9f71cc5
3 changed files with 6 additions and 0 deletions

View File

@@ -96,6 +96,7 @@ type PathDeps struct {
type Flags struct {
GlobalFlags []string // Flags that apply to C, C++, and assembly source files
ArFlags []string // Flags that apply to ar
AsFlags []string // Flags that apply to assembly source files
CFlags []string // Flags that apply to C and C++ source files
ConlyFlags []string // Flags that apply to C source files