Skip to content

Commit 57dbfff

Browse files
committed
[std.math.traits] Add error message for DMD on Arm targeting X86
1 parent 8f9380d commit 57dbfff

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

std/math/traits.d

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -981,6 +981,17 @@ template floatTraits(T)
981981
enum SIGNPOS_BYTE = 0;
982982
}
983983
}
984+
else static if (T.sizeof == 16)
985+
{
986+
version (DigialMars)
987+
{
988+
version (X86_64)
989+
static assert(false,"No traits support for " ~ T.stringof ~
990+
". If you are on ARM, DMD is trying to target X86_64.");
991+
}
992+
else
993+
static assert(false, "No traits support for " ~ T.stringof);
994+
}
984995
else
985996
static assert(false, "No traits support for " ~ T.stringof);
986997
}

0 commit comments

Comments
 (0)