def METHOD_NAME(os_, compiler):
    if tools.is_apple_os(os_):
        return "darwin"
    if compiler == "Visual Studio":
        return "msvc"
    # Assume gn knows about the os
    return str(os_).lower()