extmod/moduplatform: Detect xtensa arch.

Signed-off-by: Damien George <damien@micropython.org>
This commit is contained in:
Damien George 2022-01-06 18:24:52 +11:00
parent 000b001fc1
commit 3243abfda2

View File

@ -44,6 +44,8 @@
#define PLATFORM_ARCH "x86_64"
#elif defined(__i386__) || defined(_M_IX86)
#define PLATFORM_ARCH "x86"
#elif defined(__xtensa__) || defined(_M_IX86)
#define PLATFORM_ARCH "xtensa"
#else
#define PLATFORM_ARCH ""
#endif