GCC recently added a -stdlib= option, which makes it easier to use libc++ with g++. But this option is only enabled when GCC is configured with the --with-gxx-libcxx-include-dir= option.
It would be nice if compiler-explorer could support this option.