def is_real_gnu_compiler(path):
    '''
    Check if the gcc we have is a real gcc and not a macOS wrapper around clang
    '''
    if not path:
        return False
    out = subprocess.check_output([path, '--version'], encoding='utf-8', universal_newlines=True, stderr=subprocess.STDOUT)
    return 'Free Software Foundation' in out

    Check if the gcc we have is a real gcc and not a macOS wrapper around clang
    
unittests/machinefiletests.py