How to build libtorch from source with C++20 on M1 Mac?

I am currently limited to using the Clang compiler and can only build libtorch with C++17. Building with GCC 13.1 fails. Can anyone tell me if libtorch currently supports building with C++20? I have a lot of C++20 code in my project and I would like to incorporate the libtorch library.