Merge "Skip default dependencies for header libraries" am: 4ba70ab48e
am: e125ff0d7b
am: ec17b78b49
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1687468 Change-Id: Ica73f6d083258d9ced85ee4a25f6f5a7e3715aeb
This commit is contained in:
commit
8b4fe4fc08
|
@ -322,7 +322,7 @@ func (linker *baseLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
|
|||
|
||||
if ctx.toolchain().Bionic() {
|
||||
// libclang_rt.builtins has to be last on the command line
|
||||
if !Bool(linker.Properties.No_libcrt) {
|
||||
if !Bool(linker.Properties.No_libcrt) && !ctx.header() {
|
||||
deps.LateStaticLibs = append(deps.LateStaticLibs, config.BuiltinsRuntimeLibrary(ctx.toolchain()))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue