From fccc168a6fe0004f446dbee1763e4eaf857694c2 Mon Sep 17 00:00:00 2001 From: kgv Date: Sun, 13 Dec 2020 22:56:45 +0300 Subject: [PATCH] 0031994: Draw Harness - dversion prints "Architecture: unrecognized" on ARM host Added handling of __aarch64__ macros. --- src/Draw/Draw_BasicCommands.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Draw/Draw_BasicCommands.cxx b/src/Draw/Draw_BasicCommands.cxx index 98d793a8ab..4a0bb7b49b 100644 --- a/src/Draw/Draw_BasicCommands.cxx +++ b/src/Draw/Draw_BasicCommands.cxx @@ -428,6 +428,14 @@ static Standard_Integer dversion(Draw_Interpretor& di, Standard_Integer, const c di << "Architecture: Intel Itanium (IA 64)\n"; #elif defined(__sparc__) || defined(__sparc) di << "Architecture: SPARC\n"; +#elif defined(__aarch64__) && defined(__LP64__) + di << "Architecture: ARM 64-bit\n"; +#elif defined(__arm__) || defined(__arm64__) + #if defined(__LP64__) + di << "Architecture: ARM 64-bit\n"; + #else + di << "Architecture: ARM 32-bit\n"; + #endif #else di << "Architecture: unrecognized\n"; #endif