Don't use prebuilt rust stdlibs for linux bionic
Linux bionic doesn't have rust stdlib prebuilts, don't use the prebuilts when it is configured as the host os. Bug: 216192129 Test: builds Change-Id: I03425dee4b2e3659bf90c0a0c808cc286daa4b7f
This commit is contained in:
@@ -371,8 +371,9 @@ func (compiler *baseCompiler) compilerDeps(ctx DepsContext, deps Deps) Deps {
|
|||||||
|
|
||||||
if !Bool(compiler.Properties.No_stdlibs) {
|
if !Bool(compiler.Properties.No_stdlibs) {
|
||||||
for _, stdlib := range config.Stdlibs {
|
for _, stdlib := range config.Stdlibs {
|
||||||
// If we're building for the build host, use the prebuilt stdlibs
|
// If we're building for the build host, use the prebuilt stdlibs, unless the host
|
||||||
if ctx.Host() && !ctx.Target().HostCross {
|
// is linux_bionic which doesn't have prebuilts.
|
||||||
|
if ctx.Host() && !ctx.Target().HostCross && ctx.Target().Os != android.LinuxBionic {
|
||||||
stdlib = "prebuilt_" + stdlib
|
stdlib = "prebuilt_" + stdlib
|
||||||
}
|
}
|
||||||
deps.Stdlibs = append(deps.Stdlibs, stdlib)
|
deps.Stdlibs = append(deps.Stdlibs, stdlib)
|
||||||
|
Reference in New Issue
Block a user