Skip to content

Commit f57d960

Browse files
committed
Beginning to address PR issues.
1 parent 06cf35a commit f57d960

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

CoreFoundation/Base.subproj/CFBase.c

+1-11
Original file line numberDiff line numberDiff line change
@@ -875,17 +875,7 @@ void _CFRuntimeSetCFMPresent(void *addr) {
875875

876876

877877
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();
889879
}
890880

891881

lib/target.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,12 @@ def to_string(value):
138138
# Not 1:1, See to_string
139139
@staticmethod
140140
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
147142
if string == "armeb":
148143
return ArchType.armeb
144+
# Catch-all for little endian arm
145+
if "arm" in string:
146+
return ArchType.arm
149147
if string == "aarch64":
150148
return ArchType.aarch64
151149
if string == "aarch64_be":

0 commit comments

Comments
 (0)