Skip to content

Commit fa7789f

Browse files
author
MarcoFalke
committed
doc: Mention other ways to conserve memory on compilation
1 parent 3277627 commit fa7789f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/build-unix.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ tuned to conserve memory with additional CXXFLAGS:
6161

6262
./configure CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768"
6363

64+
Alternatively, or in addition, debugging information can be skipped for compilation. The default compile flags are
65+
`-g -O2`, and can be changed with:
66+
67+
./configure CXXFLAGS="-O2"
68+
69+
Finally, clang (often less resource hungry) can be used instead of gcc, which is used by default:
70+
71+
./configure CXX=clang++ CC=clang
6472

6573
## Linux Distribution Specific Instructions
6674

0 commit comments

Comments
 (0)