Move sanitizer.libraries.txt logic into Soong
Currently sanitizer.libraries.txt module is defined from Makefile, while all logics to create the list of modules is implmented within the Soong. This change moves sanitizer.libraries.txt module definition into Soong, so it can be generated without sharing list of modules over Make variable. Bug: 339131599 Test: AOSP CF build succeeded, with same list of modules in /system/etc/sanitizer.libraries.txt Change-Id: I987684877aa8dae221a03227d784f2a8ca4f5cc4
This commit is contained in:
@@ -431,7 +431,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 linker.Properties.libCrt() && !ctx.header() {
|
||||
deps.UnexportedStaticLibs = append(deps.UnexportedStaticLibs, config.BuiltinsRuntimeLibrary(ctx.toolchain()))
|
||||
deps.UnexportedStaticLibs = append(deps.UnexportedStaticLibs, config.BuiltinsRuntimeLibrary())
|
||||
}
|
||||
|
||||
if inList("libdl", deps.SharedLibs) {
|
||||
@@ -454,7 +454,7 @@ func (linker *baseLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
|
||||
}
|
||||
} else if ctx.toolchain().Musl() {
|
||||
if linker.Properties.libCrt() && !ctx.header() {
|
||||
deps.UnexportedStaticLibs = append(deps.UnexportedStaticLibs, config.BuiltinsRuntimeLibrary(ctx.toolchain()))
|
||||
deps.UnexportedStaticLibs = append(deps.UnexportedStaticLibs, config.BuiltinsRuntimeLibrary())
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user