Define command line args in soong_build .
They used to be defined in Blueprint but since it doesn't have a separate existence anymore, we can consolidate all command line arguments here. Note that Blueprint is called directly from soong_ui, but that happens by a simple Go function call and not by invoking a separate binary, so command line arguments are not needed there. Test: Presubmits. Change-Id: Ifa2c101ddbe424b76fc5a508d3d41c329e7353ca
This commit is contained in:
@@ -28,8 +28,6 @@ import (
|
||||
|
||||
"android/soong/bazel/cquery"
|
||||
|
||||
"github.com/google/blueprint/bootstrap"
|
||||
|
||||
"android/soong/bazel"
|
||||
"android/soong/shared"
|
||||
)
|
||||
@@ -760,7 +758,7 @@ func (c *bazelSingleton) GenerateBuildActions(ctx SingletonContext) {
|
||||
|
||||
// Add ninja file dependencies for files which all bazel invocations require.
|
||||
bazelBuildList := absolutePath(filepath.Join(
|
||||
filepath.Dir(bootstrap.CmdlineArgs.ModuleListFile), "bazel.list"))
|
||||
filepath.Dir(ctx.Config().moduleListFile), "bazel.list"))
|
||||
ctx.AddNinjaFileDeps(bazelBuildList)
|
||||
|
||||
data, err := ioutil.ReadFile(bazelBuildList)
|
||||
|
Reference in New Issue
Block a user