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

Commit e577e824 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Remove warnings about mismatched types with builtins for stubs." am:...

Merge "Remove warnings about mismatched types with builtins for stubs." am: b69919c7 am: 755be611 am: b99b6dd1 am: f8ccee06 am: 9a6b6a58

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



Change-Id: I72a58c183b163f26990db262605d0542a7cc00e6
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 5903aa05 9a6b6a58
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -284,6 +284,10 @@ func parseNativeAbiDefinition(ctx ModuleContext, symbolFile string,
}

func compileStubLibrary(ctx ModuleContext, flags Flags, src android.Path) Objects {
	// libc/libm stubs libraries end up mismatching with clang's internal definition of these
	// functions (which have noreturn attributes and other things). Because we just want to create a
	// stub with symbol definitions, and types aren't important in C, ignore the mismatch.
	flags.Local.ConlyFlags = append(flags.Local.ConlyFlags, "-fno-builtin")
	return compileObjs(ctx, flagsToBuilderFlags(flags), "",
		android.Paths{src}, nil, nil, nil, nil)
}