Skip to content

Commit 7f06abc

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

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

std/math/traits.d

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

0 commit comments

Comments
 (0)