[llvm-branch-commits] [clang] release/19.x: [clang][modules] Enable built-in modules for the upcoming Apple releases (#102239) (PR #102335)
NAKAMURA Takumi via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Aug 7 15:04:25 PDT 2024
================
@@ -2923,22 +2923,47 @@ bool Darwin::isAlignedAllocationUnavailable() const {
return TargetVersion < alignedAllocMinVersion(OS);
}
-static bool sdkSupportsBuiltinModules(const Darwin::DarwinPlatformKind &TargetPlatform, const std::optional<DarwinSDKInfo> &SDKInfo) {
+static bool sdkSupportsBuiltinModules(
+ const Darwin::DarwinPlatformKind &TargetPlatform,
+ const Darwin::DarwinEnvironmentKind &TargetEnvironment,
+ const std::optional<DarwinSDKInfo> &SDKInfo) {
+ switch (TargetEnvironment) {
+ case Darwin::NativeEnvironment:
+ case Darwin::Simulator:
+ case Darwin::MacCatalyst:
+ // Standard xnu/Mach/Darwin based environments
+ // depend on the SDK version.
+ break;
+ default:
----------------
chapuni wrote:
It might cause a warning. Fixed in 0f1361baf650641a59aaa1710d7a0b7b02f2e56d.
@kazutakahirata I suggest mentioning (e.g. #102239) in your commit message, to notify fixups.
https://github.com/llvm/llvm-project/pull/102335
More information about the llvm-branch-commits
mailing list