aboutsummaryrefslogtreecommitdiff
path: root/doc/build-unix.md
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2019-08-12 09:03:18 -0400
committerMarcoFalke <falke.marco@gmail.com>2019-08-12 16:22:09 -0400
commitfa7789f7317229f7366f7a132df199e005ed3bc6 (patch)
tree93c7d7db190620454b9bb6621d2368f9c0ba5046 /doc/build-unix.md
parent32776276ef070e06f10dbcbe56ff2fba402293ad (diff)
doc: Mention other ways to conserve memory on compilation
Diffstat (limited to 'doc/build-unix.md')
-rw-r--r--doc/build-unix.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/build-unix.md b/doc/build-unix.md
index da65bc347a..3b777f5dda 100644
--- a/doc/build-unix.md
+++ b/doc/build-unix.md
@@ -61,6 +61,14 @@ tuned to conserve memory with additional CXXFLAGS:
./configure CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768"
+Alternatively, or in addition, debugging information can be skipped for compilation. The default compile flags are
+`-g -O2`, and can be changed with:
+
+ ./configure CXXFLAGS="-O2"
+
+Finally, clang (often less resource hungry) can be used instead of gcc, which is used by default:
+
+ ./configure CXX=clang++ CC=clang
## Linux Distribution Specific Instructions