diff --git a/lib/system/mmdisp.nim b/lib/system/mmdisp.nim index 1cdf376040..5cdac29916 100644 --- a/lib/system/mmdisp.nim +++ b/lib/system/mmdisp.nim @@ -83,7 +83,7 @@ else: when not usesDestructors: include "system/cellsets" - when not leakDetector and not useCellIds: + when not leakDetector and not useCellIds and not defined(nimV2): sysAssert(sizeof(Cell) == sizeof(FreeCell), "sizeof FreeCell") when compileOption("gc", "v2"): include "system/gc2"