def normalizeCompilerName(name: str):
    """
    This function attempts to normalize compiler inputs (through CXX)
    into a uniform variant usable by the code.

    This risks breaking unknown compilers, which is an unfortunate side-effect,
    but it allows for the build code to run compatibility settings against
    the individual compilers.

    I'll rather add any other compilers here if necessary.
    """
    if (name.startswith("gcc") or name.startswith("g++")):
        return "gcc"
    elif name.startswith("clang") or name.startswith("clang++"):
        return "clang"
    elif name.startswith("msvc") or name == "cl":
        return "msvc"
    elif name.startswith("clang-cl"):
        return "clang-cl" # Silence the failure warning.
    print("WARNING: Unknown compiler detected ({}). Normalization failed. Usage of this compiler may have unintended side-effects.".format(name))
    return name