So it is only a build time option? if so, I would suggest, taking half the memory as default and and tell the user about how to change.
I don't feel good about breaking the build, if a non standard variable is not set.