Revert "Revert "Load env variables before c.config()""

This reverts commit 4e88859af0.

Reason for revert: Given https://googleplex-android-review.git.corp.google.com/c/platform/build/soong/+/15747538, we should be able to rollforward with this now.

Bug: b/198045383
Change-Id: I4c069e952d9f77258433b5059f3867293993a64d
This commit is contained in:
Kousik Kumar 2021-09-07 14:55:52 +00:00
parent 4e88859af0
commit 008c2aa126
1 changed files with 1 additions and 2 deletions

View File

@ -196,13 +196,12 @@ func main() {
Status: stat,
}}
config := c.config(buildCtx, args...)
if err := loadEnvConfig(); err != nil {
fmt.Fprintf(os.Stderr, "failed to parse env config files: %v", err)
os.Exit(1)
}
config := c.config(buildCtx, args...)
build.SetupOutDir(buildCtx, config)