1 arm cross toolchain that can switch between glibc and newlib

Is it possible to have a unified arm cross toolchain that can switch between C libraries like newlib and glibc to enable to work with bare-metal and linux development at the same time without bloating the overall package with multiple toolchains.

What is the application for this? I have a project where I am using both Aarch64 Bare-Metal and Linux toolchains to build the same code (plus some runtime stuff per environment). The toolchains clock in at 360MB and 850MB. With storage prices below 0.10$ per GB and builds usually running on quite beefy machines anyways, I don’t really see what you wish to gain here by “debloating”.