Merge pull request #301 from c-parsons/modulelistfile

This commit is contained in:
colincross 2020-06-04 14:42:05 -07:00 committed by GitHub
commit 1160e9826f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,10 +41,10 @@ var (
traceFile string traceFile string
runGoTests bool runGoTests bool
noGC bool noGC bool
moduleListFile string
emptyNinjaFile bool emptyNinjaFile bool
BuildDir string BuildDir string
ModuleListFile string
NinjaBuildDir string NinjaBuildDir string
SrcDir string SrcDir string
@ -105,9 +105,9 @@ func Main(ctx *blueprint.Context, config interface{}, extraNinjaFileDeps ...stri
} }
SrcDir = filepath.Dir(flag.Arg(0)) SrcDir = filepath.Dir(flag.Arg(0))
if moduleListFile != "" { if ModuleListFile != "" {
ctx.SetModuleListFile(moduleListFile) ctx.SetModuleListFile(ModuleListFile)
extraNinjaFileDeps = append(extraNinjaFileDeps, moduleListFile) extraNinjaFileDeps = append(extraNinjaFileDeps, ModuleListFile)
} else { } else {
fatalf("-l <moduleListFile> is required and must be nonempty") fatalf("-l <moduleListFile> is required and must be nonempty")
} }
@ -133,7 +133,7 @@ func Main(ctx *blueprint.Context, config interface{}, extraNinjaFileDeps ...stri
topLevelBlueprintsFile: flag.Arg(0), topLevelBlueprintsFile: flag.Arg(0),
emptyNinjaFile: emptyNinjaFile, emptyNinjaFile: emptyNinjaFile,
runGoTests: runGoTests, runGoTests: runGoTests,
moduleListFile: moduleListFile, moduleListFile: ModuleListFile,
} }
ctx.RegisterBottomUpMutator("bootstrap_plugin_deps", pluginDeps) ctx.RegisterBottomUpMutator("bootstrap_plugin_deps", pluginDeps)