Revert^2 "Add sdk mutator for native modules"
f8e80229fe
Change-Id: Ic30ab6b844684bfc3e8ece5a1913980d5fbf8de2
This commit is contained in:
11
cc/linker.go
11
cc/linker.go
@@ -158,6 +158,13 @@ type BaseLinkerProperties struct {
|
||||
// the ramdisk variant of the C/C++ module.
|
||||
Exclude_static_libs []string
|
||||
}
|
||||
Platform struct {
|
||||
// list of shared libs that should be use to build the platform variant
|
||||
// of a module that sets sdk_version. This should rarely be necessary,
|
||||
// in most cases the same libraries are available for the SDK and platform
|
||||
// variants.
|
||||
Shared_libs []string
|
||||
}
|
||||
}
|
||||
|
||||
// make android::build:GetBuildNumber() available containing the build ID.
|
||||
@@ -255,6 +262,10 @@ func (linker *baseLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
|
||||
deps.WholeStaticLibs = removeListFromList(deps.WholeStaticLibs, linker.Properties.Target.Recovery.Exclude_static_libs)
|
||||
}
|
||||
|
||||
if !ctx.useSdk() {
|
||||
deps.SharedLibs = append(deps.SharedLibs, linker.Properties.Target.Platform.Shared_libs...)
|
||||
}
|
||||
|
||||
if ctx.toolchain().Bionic() {
|
||||
// libclang_rt.builtins and libatomic have to be last on the command line
|
||||
if !Bool(linker.Properties.No_libcrt) {
|
||||
|
Reference in New Issue
Block a user