Last active
January 31, 2023 21:13
-
-
Save goyaljai/a75dc0ca9de343be5a22143607afcc46 to your computer and use it in GitHub Desktop.
soong.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func runSoong(ctx Context, config Config) { | |
... | |
buildMode := config.bazelBuildMode() | |
integratedBp2Build := buildMode == mixedBuild | |
... | |
bootstrapBlueprint(ctx, config) | |
... | |
ninja := func(name, ninjaFile string, targets ...string) { | |
... | |
ninjaArgs := []string{ | |
"-d", "keepdepfile", | |
"-d", "stats", | |
"-o", "usesphonyoutputs=yes", | |
"-o", "preremoveoutputs=yes", | |
"-w", "dupbuild=err", | |
"-w", "outputdir=err", | |
"-w", "missingoutfile=err", | |
"-j", strconv.Itoa(config.Parallel()), | |
"--frontend_file", fifo, | |
"-f", filepath.Join(config.SoongOutDir(), ninjaFile), | |
} | |
... | |
} | |
... | |
if config.Bp2Build() { | |
targets = append(targets, config.Bp2BuildMarkerFile()) | |
} | |
... | |
ninja("bootstrap", "bootstrap.ninja", targets...) | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment