--- mesonbuild/compilers/mixins/clike.py.orig	2022-01-03 04:12:32.000000000 +0800
+++ mesonbuild/compilers/mixins/clike.py	2022-04-06 05:50:19.000000000 +0800
@@ -1123,9 +1123,6 @@
         unless you select a particular macOS SDK with the -isysroot flag.
         You can also add to this by setting -F in CFLAGS.
         '''
-        # TODO: this really needs to be *AppleClang*, not just any clang.
-        if self.id != 'clang':
-            raise mesonlib.MesonException('Cannot find framework path with non-clang compiler')
         # Construct the compiler command-line
         commands = self.get_exelist() + ['-v', '-E', '-']
         commands += self.get_always_args()
