Merge "Add libwinpthread, link it into win32 binaries."
This commit is contained in:
11
Android.bp
11
Android.bp
@@ -245,6 +245,17 @@ toolchain_library {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
toolchain_library {
|
||||||
|
name: "libwinpthread",
|
||||||
|
host_supported: true,
|
||||||
|
enabled: false,
|
||||||
|
target: {
|
||||||
|
windows: {
|
||||||
|
enabled: true
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
toolchain_library {
|
toolchain_library {
|
||||||
name: "libgcov",
|
name: "libgcov",
|
||||||
defaults: ["linux_bionic_supported"],
|
defaults: ["linux_bionic_supported"],
|
||||||
|
@@ -156,6 +156,10 @@ func (linker *baseLinker) linkerDeps(ctx BaseModuleContext, deps Deps) Deps {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ctx.Os() == android.Windows {
|
||||||
|
deps.LateStaticLibs = append(deps.LateStaticLibs, "libwinpthread")
|
||||||
|
}
|
||||||
|
|
||||||
return deps
|
return deps
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user