Merge "Skip default dependencies for header libraries"
This commit is contained in:
commit
4ba70ab48e
|
@ -322,7 +322,7 @@ func (linker *baseLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
|
||||||
|
|
||||||
if ctx.toolchain().Bionic() {
|
if ctx.toolchain().Bionic() {
|
||||||
// libclang_rt.builtins has to be last on the command line
|
// 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()))
|
deps.LateStaticLibs = append(deps.LateStaticLibs, config.BuiltinsRuntimeLibrary(ctx.toolchain()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,8 @@ func (stl *stl) begin(ctx BaseModuleContext) {
|
||||||
s := ""
|
s := ""
|
||||||
if stl.Properties.Stl != nil {
|
if stl.Properties.Stl != nil {
|
||||||
s = *stl.Properties.Stl
|
s = *stl.Properties.Stl
|
||||||
|
} else if ctx.header() {
|
||||||
|
s = "none"
|
||||||
}
|
}
|
||||||
if ctx.useSdk() && ctx.Device() {
|
if ctx.useSdk() && ctx.Device() {
|
||||||
switch s {
|
switch s {
|
||||||
|
|
Loading…
Reference in New Issue