Browse Source

Add Elbrus e2k architecture detection

tags/v0.3.20
Martin Kroeker GitHub 4 years ago
parent
commit
1937b4e435
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions
  1. +7
    -0
      c_check
  2. +4
    -0
      ctest.c

+ 7
- 0
c_check View File

@@ -84,6 +84,7 @@ $os = Haiku if ($data =~ /OS_HAIKU/);

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

if ($architecture eq "e2k") {
$defined = 1;
$binary = 64;
}

if ($architecture eq "alpha") {
$defined = 1;
$binary = 64;
@@ -223,6 +229,7 @@ if (($architecture eq "mips") || ($architecture eq "mips64")) {

$architecture = x86 if ($data =~ /ARCH_X86/);
$architecture = x86_64 if ($data =~ /ARCH_X86_64/);
$architecture = e2k if ($data =~ /ARCH_E2K/);
$architecture = power if ($data =~ /ARCH_POWER/);
$architecture = mips if ($data =~ /ARCH_MIPS/);
$architecture = mips64 if ($data =~ /ARCH_MIPS64/);


+ 4
- 0
ctest.c View File

@@ -165,3 +165,7 @@ ARCH_LOONGARCH64
HAVE_C11
#endif

#if defined(__e2k__)
ARCH_E2K
#endif


Loading…
Cancel
Save