Return linux as host OS from getConfigString when using musl
linux_musl is an alternative host OS, return "linux" from getConfigString when it is being used. Bug: 259266326 Test: build/bazel/ci/mixed_libc.sh Test: USE_HOST_MUSL=true build/bazel/ci/mixed_libc.sh Change-Id: I47b8fdd93b36345f82dd4e8455edb4c579f805e9
This commit is contained in:
@@ -1201,7 +1201,7 @@ func getConfigString(key cqueryKey) string {
|
||||
}
|
||||
}
|
||||
osName := key.configKey.osType.Name
|
||||
if len(osName) == 0 || osName == "common_os" || osName == "linux_glibc" {
|
||||
if len(osName) == 0 || osName == "common_os" || osName == "linux_glibc" || osName == "linux_musl" {
|
||||
// Use host OS, which is currently hardcoded to be linux.
|
||||
osName = "linux"
|
||||
}
|
||||
|
Reference in New Issue
Block a user