File tree 2 files changed +5
-17
lines changed
CoreFoundation/Base.subproj
2 files changed +5
-17
lines changed Original file line number Diff line number Diff line change @@ -875,17 +875,7 @@ void _CFRuntimeSetCFMPresent(void *addr) {
875
875
876
876
877
877
extern void __HALT () {
878
- #if defined(__ppc__ ) || defined(__arm__ )
879
- __asm__("trap" );
880
-
881
- #elif defined(__i386__ ) || defined(__x86_64__ )
882
- #if defined(_MSC_VER )
883
- __asm int 3 ;
884
- #else
885
- __asm__("int3" );
886
- #endif
887
-
888
- #endif
878
+ __builtin_trap ();
889
879
}
890
880
891
881
Original file line number Diff line number Diff line change @@ -138,14 +138,12 @@ def to_string(value):
138
138
# Not 1:1, See to_string
139
139
@staticmethod
140
140
def from_string (string ):
141
- if string == "arm" :
142
- return ArchType .arm
143
- if string == "armv7" :
144
- return ArchType .arm
145
- if string == "armv7l" :
146
- return ArchType .arm
141
+ # Match big endian arm first
147
142
if string == "armeb" :
148
143
return ArchType .armeb
144
+ # Catch-all for little endian arm
145
+ if "arm" in string :
146
+ return ArchType .arm
149
147
if string == "aarch64" :
150
148
return ArchType .aarch64
151
149
if string == "aarch64_be" :
You can’t perform that action at this time.
0 commit comments