Revert "Move libgcc to libcrt.builtins"
This reverts commit 77e62dbf59
.
Reason for revert: caused boot failure on mirror-aosp-master-with-vendor
Change-Id: I594df35878616dba8990d044d7cd529458a601b6
This commit is contained in:
parent
77e62dbf59
commit
6fb831bd56
|
@ -84,30 +84,6 @@ func createTestContext(t *testing.T, config android.Config, bp string) *android.
|
||||||
recovery_available: true,
|
recovery_available: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
toolchain_library {
|
|
||||||
name: "libclang_rt.builtins-arm-android",
|
|
||||||
vendor_available: true,
|
|
||||||
recovery_available: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
toolchain_library {
|
|
||||||
name: "libclang_rt.builtins-aarch64-android",
|
|
||||||
vendor_available: true,
|
|
||||||
recovery_available: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
toolchain_library {
|
|
||||||
name: "libclang_rt.builtins-i686-android",
|
|
||||||
vendor_available: true,
|
|
||||||
recovery_available: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
toolchain_library {
|
|
||||||
name: "libclang_rt.builtins-x86_64-android",
|
|
||||||
vendor_available: true,
|
|
||||||
recovery_available: true,
|
|
||||||
}
|
|
||||||
|
|
||||||
toolchain_library {
|
toolchain_library {
|
||||||
name: "libgcc",
|
name: "libgcc",
|
||||||
vendor_available: true,
|
vendor_available: true,
|
||||||
|
|
12
cc/linker.go
12
cc/linker.go
|
@ -16,7 +16,6 @@ package cc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"android/soong/android"
|
"android/soong/android"
|
||||||
"android/soong/cc/config"
|
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/google/blueprint"
|
"github.com/google/blueprint"
|
||||||
|
@ -215,13 +214,12 @@ func (linker *baseLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
|
||||||
deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Target.Recovery.Exclude_static_libs)
|
deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Target.Recovery.Exclude_static_libs)
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.toolchain().Bionic() {
|
if ctx.ModuleName() != "libcompiler_rt-extras" {
|
||||||
// libclang_rt.builtins, libgcc and libatomic have to be last on the command line
|
deps.LateStaticLibs = append(deps.LateStaticLibs, "libcompiler_rt-extras")
|
||||||
// TODO: Also enable for libc and libm
|
}
|
||||||
if ctx.ModuleName() != "libc" && ctx.ModuleName() != "libm" {
|
|
||||||
deps.LateStaticLibs = append(deps.LateStaticLibs, config.BuiltinsRuntimeLibrary(ctx.toolchain()))
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if ctx.toolchain().Bionic() {
|
||||||
|
// libgcc and libatomic have to be last on the command line
|
||||||
deps.LateStaticLibs = append(deps.LateStaticLibs, "libatomic")
|
deps.LateStaticLibs = append(deps.LateStaticLibs, "libatomic")
|
||||||
if !Bool(linker.Properties.No_libgcc) {
|
if !Bool(linker.Properties.No_libgcc) {
|
||||||
deps.LateStaticLibs = append(deps.LateStaticLibs, "libgcc")
|
deps.LateStaticLibs = append(deps.LateStaticLibs, "libgcc")
|
||||||
|
|
Loading…
Reference in New Issue