Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit aadd4d3

Browse files
jacob-carlborgGeod24
authored andcommitted
Rename AppleARM version identifier to iOSDerived
The name `AppleARM` was used to indicate any of the platforms: iOS, tvOS and watchOS. The name was misleading since the version identifier for these platforms would be enabled also when compiling for the simulators. The simulators are running x86(-64).
1 parent 33aa687 commit aadd4d3

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/core/memory.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@ else version (AArch64)
110110
version = AnyARM;
111111

112112
version (iOS)
113-
version = AppleARM;
113+
version = iOSDerived;
114114
else version (TVOS)
115-
version = AppleARM;
115+
version = iOSDerived;
116116
else version (WatchOS)
117-
version = AppleARM;
117+
version = iOSDerived;
118118

119119
private
120120
{
@@ -179,7 +179,7 @@ version (CoreDoc)
179179
}
180180
else version (AnyARM)
181181
{
182-
version (AppleARM)
182+
version (iOSDerived)
183183
enum size_t minimumPageSize = 16384;
184184
else
185185
enum size_t minimumPageSize = 4096;

src/core/sys/darwin/mach/thread_act.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ version (X86)
3535
version (X86_64)
3636
version = i386;
3737
version (AArch64)
38-
version = AppleARM;
38+
version = AnyARM;
3939
version (ARM)
40-
version = AppleARM;
40+
version = AnyARM;
4141

4242
version (i386)
4343
{
@@ -142,7 +142,7 @@ version (i386)
142142
}
143143
// https://github.com/apple/darwin-xnu/blob/master/osfmk/mach/arm/_structs.h
144144
// https://github.com/apple/darwin-xnu/blob/master/osfmk/mach/arm/thread_status.h
145-
else version (AppleARM)
145+
else version (AnyARM)
146146
{
147147
alias thread_act_t = mach_port_t;
148148
alias thread_state_t = void;

0 commit comments

Comments
 (0)