Merge "Don't use prebuilt rust stdlibs for linux bionic" am: 4b1fe58b7d

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2143993

Change-Id: I74c54e14877ed610febc41cd5f10cefcccedd97d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot
2022-07-01 20:42:34 +00:00
committed by Automerger Merge Worker

View File

@@ -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)