diff options
Diffstat (limited to 'ui/build/soong.go')
-rw-r--r-- | ui/build/soong.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/build/soong.go b/ui/build/soong.go index 87818e386..05fbf1d89 100644 --- a/ui/build/soong.go +++ b/ui/build/soong.go @@ -287,6 +287,17 @@ func runSoong(ctx Context, config Config) { // root of the source tree and the output root ninjaEnv.Set("TOP", os.Getenv("TOP")) + qcEnvVars := []string{ + "TARGET_BOARD_PLATFORM", + "SDCLANG_AE_CONFIG", + "SDCLANG_CONFIG", + "SDCLANG_SA_ENABLED", + "QIIFA_BUILD_CONFIG", + } + for _, qcVar := range qcEnvVars { + ninjaEnv.Set(qcVar, os.Getenv(qcVar)) + } + cmd.Environment = &ninjaEnv cmd.Sandbox = soongSandbox cmd.RunAndStreamOrFatal() |