Commit 34eaf2b8 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺

Fix two occurences of `x86_HOST_ARCH`

The proper name for the define is `i386_HOST_ARCH`

One was introduced back in 2011 via
035b8ebb / #4914
and the other one more recently via
4905b83a

We may want to add some validation to catch such typos early on...

Reviewed By: erikd

Differential Revision: https://phabricator.haskell.org/D1664
parent d8c89026
......@@ -66,7 +66,7 @@ platform =
ArchSparc
#elif defined(powerpc_HOST_ARCH)
ArchPPC
#elif defined(x86_HOST_ARCH)
#elif defined(i386_HOST_ARCH)
ArchX86
#elif defined(x86_64_HOST_ARCH)
ArchX86_64
......
......@@ -319,7 +319,7 @@ int rts_isDynamic(void)
// Used for detecting a non-empty FPU stack on x86 (see #4914)
void checkFPUStack(void)
{
#ifdef x86_HOST_ARCH
#ifdef i386_HOST_ARCH
static unsigned char buf[108];
asm("FSAVE %0":"=m" (buf));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment