Merge "Support musl builds in Make" am: b37a92ccc8
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1797129 Change-Id: I771db86c62207bde3e4ba60569e4d3ebbfe32358
This commit is contained in:
@@ -571,7 +571,7 @@ func (a *AndroidMkEntries) fillInEntries(ctx fillInEntriesContext, mod blueprint
|
|||||||
|
|
||||||
if host {
|
if host {
|
||||||
makeOs := amod.Os().String()
|
makeOs := amod.Os().String()
|
||||||
if amod.Os() == Linux || amod.Os() == LinuxBionic {
|
if amod.Os() == Linux || amod.Os() == LinuxBionic || amod.Os() == LinuxMusl {
|
||||||
makeOs = "linux"
|
makeOs = "linux"
|
||||||
}
|
}
|
||||||
a.SetString("LOCAL_MODULE_HOST_OS", makeOs)
|
a.SetString("LOCAL_MODULE_HOST_OS", makeOs)
|
||||||
|
@@ -212,7 +212,7 @@ func (a *apexBundle) androidMkForFiles(w io.Writer, apexBundleName, apexName, mo
|
|||||||
}
|
}
|
||||||
if host {
|
if host {
|
||||||
makeOs := fi.module.Target().Os.String()
|
makeOs := fi.module.Target().Os.String()
|
||||||
if fi.module.Target().Os == android.Linux || fi.module.Target().Os == android.LinuxBionic {
|
if fi.module.Target().Os == android.Linux || fi.module.Target().Os == android.LinuxBionic || fi.module.Target().Os == android.LinuxMusl {
|
||||||
makeOs = "linux"
|
makeOs = "linux"
|
||||||
}
|
}
|
||||||
fmt.Fprintln(w, "LOCAL_MODULE_HOST_OS :=", makeOs)
|
fmt.Fprintln(w, "LOCAL_MODULE_HOST_OS :=", makeOs)
|
||||||
|
Reference in New Issue
Block a user