From e3a668a33baaf9d89b287827eaab3fa1cdfec877 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 15 Dec 2018 13:54:41 +0100 Subject: --gc:destructors: baby steps --- lib/system.nim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/system.nim') diff --git a/lib/system.nim b/lib/system.nim index ea767e27a..47efda3fc 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -3431,6 +3431,10 @@ when not defined(JS): #and not defined(nimscript): when defined(memtracker): include "system/memtracker" + when defined(gcDestructors): + include "core/strs" + include "core/seqs" + when hostOS == "standalone": include "system/embedded" else: @@ -3479,10 +3483,7 @@ when not defined(JS): #and not defined(nimscript): {.pop.} {.push stack_trace: off, profiler:off.} when hasAlloc: - when defined(gcDestructors): - include "core/strs" - include "core/seqs" - else: + when not defined(gcDestructors): include "system/sysstr" {.pop.} when hasAlloc: include "system/strmantle" -- cgit 1.4.1-2-gfad0