some compilers don't fully support modules with the way cmake does them. it seems like only Clang 16 supports them which is not in the arch repos yet.
i have to switch to cmake to get proper c++ modules support.