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
{
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;

View File

@ -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'

View File

@ -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 = (