diff options
author | 2022-07-01 20:17:01 +0000 | |
---|---|---|
committer | 2022-07-01 20:17:01 +0000 | |
commit | 4b1fe58b7deca2e581b9e2df1a706f687006b4f8 (patch) | |
tree | f63fff982def104342b35b02a4e4dafcc2258746 | |
parent | d9cb4b746cfa3c902467e6e5488fe30a0ed48dfc (diff) | |
parent | a8941ec69fd680a80cc4ac026c831be6866f13c7 (diff) |
Merge "Don't use prebuilt rust stdlibs for linux bionic"
-rw-r--r-- | rust/compiler.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rust/compiler.go b/rust/compiler.go index 365f1e0b5..bf6a48844 100644 --- a/rust/compiler.go +++ b/rust/compiler.go @@ -371,8 +371,9 @@ 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 build host, use the prebuilt stdlibs - if ctx.Host() && !ctx.Target().HostCross { + // If we're building for the build host, use the prebuilt stdlibs, unless the host + // is linux_bionic which doesn't have prebuilts. + if ctx.Host() && !ctx.Target().HostCross && ctx.Target().Os != android.LinuxBionic { stdlib = "prebuilt_" + stdlib } deps.Stdlibs = append(deps.Stdlibs, stdlib) |