Handle arch-specific/not properties the same.

Refactor arch-handling code to return a "no-config" axis which allows
handling non-arch configed properties the same way as arch-configed
properties.

Test: build/bazel/ci/bp2build.sh
Change-Id: I485b35fd91c28501fe2055234dc9b278488bf4b5
This commit is contained in:
Liz Kammer
2021-08-11 10:46:06 -04:00
parent 0dd067d309
commit 135bf55281
3 changed files with 36 additions and 117 deletions

View File

@@ -261,8 +261,12 @@ func (compiler *baseCompiler) compilerProps() []interface{} {
return []interface{}{&compiler.Properties, &compiler.Proto}
}
func includeBuildDirectory(prop *bool) bool {
return proptools.BoolDefault(prop, true)
}
func (compiler *baseCompiler) includeBuildDirectory() bool {
return proptools.BoolDefault(compiler.Properties.Include_build_directory, true)
return includeBuildDirectory(compiler.Properties.Include_build_directory)
}
func (compiler *baseCompiler) compilerInit(ctx BaseModuleContext) {}