fix (temp), custom struct/class allocators problem when inline is set

This commit is contained in:
Basile Burg 2015-10-31 10:43:42 +01:00
parent 45b11a9798
commit 0a74b7e3b4
3 changed files with 6 additions and 10 deletions

View File

@ -52,6 +52,7 @@ void main(string[] args)
else else
{ {
write(slb.serialize); write(slb.serialize);
} }
slb.destruct; slb.destruct;
@ -77,6 +78,9 @@ string patchPasStringLitteral(const ref string p)
} }
// Memory utils ---------------------------------------------------------------+ // Memory utils ---------------------------------------------------------------+
// TODO-cbugfix: inline + optimizations + custom constructor = empty symbol list !
// inline + optimization + use 'new' = ok
void * getMem(size_t size) nothrow void * getMem(size_t size) nothrow
{ {
import std.c.stdlib; import std.c.stdlib;

View File

@ -1,18 +1,11 @@
object CurrentProject: TCEProject object CurrentProject: TCENativeProject
OptionsCollection = < OptionsCollection = <
item item
name = 'release' name = 'release'
outputOptions.inlining = True
outputOptions.boundsCheck = offAlways outputOptions.boundsCheck = offAlways
outputOptions.optimizations = True outputOptions.optimizations = True
outputOptions.release = True outputOptions.release = True
pathsOptions.outputFilename = '..\lazproj\cesyms' pathsOptions.outputFilename = '../lazproj/cesyms'
preBuildProcess.options = []
preBuildProcess.showWindow = swoNone
postBuildProcess.options = []
postBuildProcess.showWindow = swoNone
runOptions.options = []
runOptions.showWindow = swoNone
end> end>
Sources.Strings = ( Sources.Strings = (
'cesyms.d' 'cesyms.d'

View File

@ -4,7 +4,6 @@ object CurrentProject: TCEProject
name = 'release' name = 'release'
outputOptions.inlining = True outputOptions.inlining = True
outputOptions.boundsCheck = offAlways outputOptions.boundsCheck = offAlways
outputOptions.optimizations = True
outputOptions.release = True outputOptions.release = True
pathsOptions.outputFilename = '..\lazproj\cesyms' pathsOptions.outputFilename = '..\lazproj\cesyms'
pathsOptions.extraSources.Strings = ( pathsOptions.extraSources.Strings = (