about summary refs log tree commit diff stats
path: root/makefile
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-07-10 10:05:56 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-07-10 10:05:56 -0700
commit8b7917f05b653fa423f1b97e02147b2053227632 (patch)
treec9f0688945c3214fc949e9d66a9f61d82357f287 /makefile
parent27d90d8087bd06198a3b0d1ac1c3fa35dc6a8a45 (diff)
downloadmu-8b7917f05b653fa423f1b97e02147b2053227632.tar.gz
3107 - just always support small VPS servers
In experiments on my laptop it seems to compile a little faster and run
slightly slower. Both might be in the noise.
Diffstat (limited to 'makefile')
-rw-r--r--makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/makefile b/makefile
index 626537d4..7c2c7542 100644
--- a/makefile
+++ b/makefile
@@ -2,6 +2,8 @@ all: mu_bin core.mu
 
 CXX ?= c++
 CFLAGS ?= -g -O3
+# reduce memory usage for small servers
+CFLAGS := ${CFLAGS} --param ggc-min-expand=1 --param ggc-min-heapsize=32768
 
 mu_bin: makefile mu.cc termbox/libtermbox.a
 	${CXX} ${CFLAGS} -Wall -Wextra -ftrapv -fno-strict-aliasing mu.cc termbox/libtermbox.a -o mu_bin