Skip to content

Commit 1937b4e

Browse files
authored
Add Elbrus e2k architecture detection
1 parent c1c0d5c commit 1937b4e

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

c_check

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ $os = Haiku if ($data =~ /OS_HAIKU/);
8484

8585
$architecture = x86 if ($data =~ /ARCH_X86/);
8686
$architecture = x86_64 if ($data =~ /ARCH_X86_64/);
87+
$architecture = e2k if ($data =~ /ARCH_E2K/);
8788
$architecture = power if ($data =~ /ARCH_POWER/);
8889
$architecture = mips if ($data =~ /ARCH_MIPS/);
8990
$architecture = mips64 if ($data =~ /ARCH_MIPS64/);
@@ -124,6 +125,11 @@ if ($architecture eq "zarch") {
124125
$binary = 64;
125126
}
126127

128+
if ($architecture eq "e2k") {
129+
$defined = 1;
130+
$binary = 64;
131+
}
132+
127133
if ($architecture eq "alpha") {
128134
$defined = 1;
129135
$binary = 64;
@@ -223,6 +229,7 @@ if (($architecture eq "mips") || ($architecture eq "mips64")) {
223229

224230
$architecture = x86 if ($data =~ /ARCH_X86/);
225231
$architecture = x86_64 if ($data =~ /ARCH_X86_64/);
232+
$architecture = e2k if ($data =~ /ARCH_E2K/);
226233
$architecture = power if ($data =~ /ARCH_POWER/);
227234
$architecture = mips if ($data =~ /ARCH_MIPS/);
228235
$architecture = mips64 if ($data =~ /ARCH_MIPS64/);

ctest.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,7 @@ ARCH_LOONGARCH64
165165
HAVE_C11
166166
#endif
167167

168+
#if defined(__e2k__)
169+
ARCH_E2K
170+
#endif
171+

0 commit comments

Comments
 (0)