From fa7789f7317229f7366f7a132df199e005ed3bc6 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Mon, 12 Aug 2019 09:03:18 -0400 Subject: doc: Mention other ways to conserve memory on compilation --- doc/build-unix.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/build-unix.md') 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 -- cgit v1.2.3