From 0a74b7e3b4e766b6631c26c9a50ab26db92f01ef Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Sat, 31 Oct 2015 10:43:42 +0100 Subject: [PATCH] fix (temp), custom struct/class allocators problem when inline is set --- cesyms/cesyms.d | 4 ++++ cesyms/cesyms_libman.coedit | 11 ++--------- cesyms/cesyms_submodule.coedit | 1 - 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/cesyms/cesyms.d b/cesyms/cesyms.d index 74fc8950..eb5dde36 100644 --- a/cesyms/cesyms.d +++ b/cesyms/cesyms.d @@ -52,6 +52,7 @@ void main(string[] args) else { write(slb.serialize); + } slb.destruct; @@ -77,6 +78,9 @@ string patchPasStringLitteral(const ref string p) } // Memory utils ---------------------------------------------------------------+ +// TODO-cbugfix: inline + optimizations + custom constructor = empty symbol list ! +// inline + optimization + use 'new' = ok + void * getMem(size_t size) nothrow { import std.c.stdlib; diff --git a/cesyms/cesyms_libman.coedit b/cesyms/cesyms_libman.coedit index cb42f221..63ab728f 100644 --- a/cesyms/cesyms_libman.coedit +++ b/cesyms/cesyms_libman.coedit @@ -1,18 +1,11 @@ -object CurrentProject: TCEProject +object CurrentProject: TCENativeProject OptionsCollection = < item name = 'release' - outputOptions.inlining = True outputOptions.boundsCheck = offAlways outputOptions.optimizations = True outputOptions.release = True - pathsOptions.outputFilename = '..\lazproj\cesyms' - preBuildProcess.options = [] - preBuildProcess.showWindow = swoNone - postBuildProcess.options = [] - postBuildProcess.showWindow = swoNone - runOptions.options = [] - runOptions.showWindow = swoNone + pathsOptions.outputFilename = '../lazproj/cesyms' end> Sources.Strings = ( 'cesyms.d' diff --git a/cesyms/cesyms_submodule.coedit b/cesyms/cesyms_submodule.coedit index 418d0c2e..6eda3903 100644 --- a/cesyms/cesyms_submodule.coedit +++ b/cesyms/cesyms_submodule.coedit @@ -4,7 +4,6 @@ object CurrentProject: TCEProject name = 'release' outputOptions.inlining = True outputOptions.boundsCheck = offAlways - outputOptions.optimizations = True outputOptions.release = True pathsOptions.outputFilename = '..\lazproj\cesyms' pathsOptions.extraSources.Strings = (