def getRoot(config): if not config.parent: return config return getRoot(config.parent) root = getRoot(config) if not root.has_libcxx: config.unsupported = True