fixes the --verbosity:2 regression [backport]

(cherry picked from commit 13960066cb)
This commit is contained in:
Andreas Rumpf
2019-09-24 01:30:53 +02:00
committed by narimiran
parent bda6e071cd
commit 7926440ae3

View File

@@ -727,7 +727,7 @@ proc `$`*(c: IdeCmd): string =
proc floatInt64Align*(conf: ConfigRef): int16 =
## Returns either 4 or 8 depending on reasons.
if conf.target.targetCPU == cpuI386:
if conf != nil and conf.target.targetCPU == cpuI386:
#on Linux/BSD i386, double are aligned to 4bytes (except with -malign-double)
if conf.target.targetOS != osWindows:
# on i386 for all known POSIX systems, 64bits ints are aligned