export CPATH=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Perl/5.30/darwin-thread-multi-2level/CORE
but still getting:
clang: error: invalid Darwin version number: macos11.6
clang: error: invalid version number in '--target=x86_64-apple-macos11.6'
warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 11.6, but the range of supported deployment target versions is 10.6 to 10.15.99. (in target 'PSMTabBarControlFramework' from project 'PSMTabBarControl')
warning: Traditional headermap style is no longer supported; please migrate to using separate headermaps and set 'ALWAYS_SEARCH_USER_PATHS' to NO. (in target 'PSMTabBarControlFramework' from project 'PSMTabBarControl')
warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 11.6, but the range of supported deployment target versions is 10.6 to 10.15.99. (in target 'MacVim' from project 'MacVim')
** BUILD FAILED **
I'm on a 2015 MBPro, so this has nothing to do with M1.
What is the proper fix that won't break things the next time I 'git pull' ?