Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aaae81f5 authored by Steven Moreland's avatar Steven Moreland
Browse files

cc: clearer OS mismatch error.

Bugs: me
Test: clear error message, for instance:

    error: frameworks/native/libs/binder/ndk/Android.bp:252:1: module "libbinder_ndk.ndk" variant "android_x86_64_silvermont_sdk_shared_29": OS mismatch between "libbinder_ndk.ndk" (android) and "libbinder_headers_platform_shared" (linux_glibc)

Change-Id: Idfa6d27daeb89056781c93a893e4080e49b3fcb0
parent 24bf5a76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3042,7 +3042,7 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
		}

		if dep.Target().Os != ctx.Os() {
			ctx.ModuleErrorf("OS mismatch between %q and %q", ctx.ModuleName(), depName)
			ctx.ModuleErrorf("OS mismatch between %q (%s) and %q (%s)", ctx.ModuleName(), ctx.Os().Name, depName, dep.Target().Os.Name)
			return
		}
		if dep.Target().Arch.ArchType != ctx.Arch().ArchType {