Revert "Build system changes for CFI (Soong)"

This reverts commit d4b484b070.

Rationale: second in group of commits that left aosp_x86_64 not
building. (See https://android-build.googleplex.com/builds/
submitted/4426589/aosp_x86_64-eng/latest/logs/build_error.log)

Bug: 30227045
Test: builds
Change-Id: I38ab5284c614d6ee68e7359219bd75c7d50131be
This commit is contained in:
Orion Hodson
2017-10-31 17:37:33 +00:00
committed by Colin Cross
parent da11d7422f
commit 33c252c2f1
5 changed files with 26 additions and 114 deletions

View File

@@ -46,9 +46,6 @@ func init() {
ctx.TopDown("asan_deps", sanitizerDepsMutator(asan))
ctx.BottomUp("asan", sanitizerMutator(asan)).Parallel()
ctx.TopDown("cfi_deps", sanitizerDepsMutator(cfi))
ctx.BottomUp("cfi", sanitizerMutator(cfi)).Parallel()
ctx.TopDown("tsan_deps", sanitizerDepsMutator(tsan))
ctx.BottomUp("tsan", sanitizerMutator(tsan)).Parallel()
@@ -440,7 +437,12 @@ func (ctx *moduleContextImpl) toolchain() config.Toolchain {
}
func (ctx *moduleContextImpl) static() bool {
return ctx.mod.static()
if static, ok := ctx.mod.linker.(interface {
static() bool
}); ok {
return static.static()
}
return false
}
func (ctx *moduleContextImpl) staticBinary() bool {
@@ -1279,15 +1281,6 @@ func (c *Module) Srcs() android.Paths {
return android.Paths{}
}
func (c *Module) static() bool {
if static, ok := c.linker.(interface {
static() bool
}); ok {
return static.static()
}
return false
}
//
// Defaults
//