diff options
| author | 2023-06-16 08:06:06 +0000 | |
|---|---|---|
| committer | 2023-06-16 08:06:06 +0000 | |
| commit | aa003b383388eb7730ee7df1bea4fa6442f74f0c (patch) | |
| tree | ff2a79f2c2ff9a72bea99d23346d42a1dacabf41 | |
| parent | ee31de71c77790e1772fc544c2219d8830c305fd (diff) | |
| parent | d9efcabf74bbd935c85394860711f6076cd560ae (diff) | |
Merge "Remove symlink to the build.ninja"
| -rw-r--r-- | cmd/soong_build/main.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/cmd/soong_build/main.go b/cmd/soong_build/main.go index 52b2d2607..989dd7fcd 100644 --- a/cmd/soong_build/main.go +++ b/cmd/soong_build/main.go @@ -531,8 +531,6 @@ func main() { var finalOutputFile string - writeSymlink := false - // Run Soong for a specific activity, like bp2build, queryview // or the actual Soong build for the build.ninja file. switch configuration.BuildMode { @@ -555,13 +553,8 @@ func main() { maybeQuit(err, "") } } - writeSymlink = true } else { finalOutputFile = runSoongOnlyBuild(ctx, extraNinjaDeps) - - if configuration.BuildMode == android.AnalysisNoBazel { - writeSymlink = true - } } writeMetrics(configuration, ctx.EventHandler, metricsDir) } @@ -578,24 +571,6 @@ func main() { // are ninja inputs to the main output file, then ninja would superfluously // rebuild this output file on the next build invocation. touch(shared.JoinPath(topDir, finalOutputFile)) - - // TODO(b/277029044): Remove this function once build.<product>.ninja lands - if writeSymlink { - writeBuildNinjaSymlink(configuration, finalOutputFile) - } -} - -// TODO(b/277029044): Remove this function once build.<product>.ninja lands -func writeBuildNinjaSymlink(config android.Config, source string) { - targetPath := shared.JoinPath(topDir, config.SoongOutDir(), "build.ninja") - sourcePath := shared.JoinPath(topDir, source) - - if targetPath == sourcePath { - return - } - - os.Remove(targetPath) - os.Symlink(sourcePath, targetPath) } func writeUsedEnvironmentFile(configuration android.Config) { |