mirror of
https://github.com/tpoechtrager/osxcross.git
synced 2024-10-05 15:18:35 +03:00
Add '__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__' compatiblity quirks for MacOS >= 14 SDKs
This commit is contained in:
parent
96a651cfa7
commit
3279f86379
@ -886,6 +886,10 @@ bool Target::setup() {
|
||||
#endif
|
||||
|
||||
if (isClang()) {
|
||||
if (SDKOSNum >= OSVersion(14, 0) && clangversion < ClangVersion(17, 0)) {
|
||||
// MacOS 14 SDK uses __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ in AvailabilityInternal.h
|
||||
fargs.push_back("-D__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__=" + OSNum.numStr());
|
||||
}
|
||||
if (clangversion >= ClangVersion(3, 8)) {
|
||||
//
|
||||
// Silence:
|
||||
|
@ -332,6 +332,12 @@ struct OSVersion {
|
||||
return tmp.str();
|
||||
}
|
||||
|
||||
std::string numStr() const {
|
||||
std::stringstream tmp;
|
||||
tmp << Num();
|
||||
return tmp.str();
|
||||
}
|
||||
|
||||
int major;
|
||||
int minor;
|
||||
int patch;
|
||||
|
Loading…
Reference in New Issue
Block a user