From 0c66bc615b399d2201b15b4c9052066db04a3f5e Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 20 Jul 2021 09:47:41 -0700 Subject: Replace android.BuildOs with Config.BuildOS Replace the android.BuildOs constant with Config.BuildOS so that it can vary based on the product config. Bug: 190084016 Test: all Soong tests Change-Id: Ia67f872d8b2ab788747a22e3a9659dc21c9775cd --- rust/compiler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/compiler.go') diff --git a/rust/compiler.go b/rust/compiler.go index 0b28135ae..df77759d6 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -305,7 +305,7 @@ func (compiler *baseCompiler) compilerDeps(ctx DepsContext, deps Deps) Deps { if !Bool(compiler.Properties.No_stdlibs) { for _, stdlib := range config.Stdlibs { // If we're building for the primary arch of the build host, use the compiler's stdlibs - if ctx.Target().Os == android.BuildOs { + if ctx.Target().Os == ctx.Config().BuildOS { stdlib = stdlib + "_" + ctx.toolchain().RustTriple() } deps.Stdlibs = append(deps.Stdlibs, stdlib) -- cgit v1.2.3-59-g8ed1b