aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukacs T. Berki <lberki@google.com>2021-09-07 12:36:52 +0200
committerLukacs T. Berki <lberki@google.com>2021-09-08 09:35:56 +0200
commit5d5ed5fc6b6f6c192d2337d5592bcd31773cee02 (patch)
tree29ceb686a89ae109e1147f0c7c88211bc8c311ef
parent70d6564d7da6d1a896427ae4e8d8cac3110912a0 (diff)
downloadplatform_build_blueprint-5d5ed5fc6b6f6c192d2337d5592bcd31773cee02.tar.gz
platform_build_blueprint-5d5ed5fc6b6f6c192d2337d5592bcd31773cee02.tar.bz2
platform_build_blueprint-5d5ed5fc6b6f6c192d2337d5592bcd31773cee02.zip
Remove PrimaryBuilderExtraFlags and cull Args.HEADmaster
PrimaryBuilderExtra flags was only used from soong_ui and has nothing to do with Blueprint files or modules and Args contained a lot of members that were likewise only used for plumbing withing soong_ui or for command line processing for soong_build. Test: Presubmits. Change-Id: Ibf009e446b4044309a331592a88a4aa86b4801e3
-rw-r--r--bootstrap/command.go44
1 files changed, 5 insertions, 39 deletions
diff --git a/bootstrap/command.go b/bootstrap/command.go
index 6847236..e475709 100644
--- a/bootstrap/command.go
+++ b/bootstrap/command.go
@@ -31,48 +31,14 @@ import (
type Args struct {
ModuleListFile string
- OutDir string
- SoongOutDir string
+ OutFile string
- OutFile string
- Subninjas []string
- PrimaryBuilderInvocations []PrimaryBuilderInvocation
-
- RunGoTests bool
- UseValidations bool
EmptyNinjaFile bool
- NoGC bool
- Cpuprofile string
- Memprofile string
- DelveListen string
- DelvePath string
- TraceFile string
-}
-
-func PrimaryBuilderExtraFlags(args Args, mainNinjaFile string) []string {
- result := make([]string, 0)
-
- if args.RunGoTests {
- result = append(result, "-t")
- }
-
- result = append(result, "-l", args.ModuleListFile)
- result = append(result, "-o", mainNinjaFile)
-
- if args.EmptyNinjaFile {
- result = append(result, "--empty-ninja-file")
- }
-
- if args.DelveListen != "" {
- result = append(result, "--delve_listen", args.DelveListen)
- }
-
- if args.DelvePath != "" {
- result = append(result, "--delve_path", args.DelvePath)
- }
-
- return result
+ NoGC bool
+ Cpuprofile string
+ Memprofile string
+ TraceFile string
}
// Returns the list of dependencies the emitted Ninja files has. These can be