Toolachain availability in settings

Hello I’d like to enable or disable the inclusion of project in settings based on available toolchains. Maybe even echo custom message about missing toolchains.

A bit like this question for JVM toolchain : Access javaToolchains from settings.gradle

Typically, I’m thinking about cpp-application project and swift-application projects. Is there anyway to get this information from the settings file ?