Skip to content

Commit c3b605c

Browse files
committed
Merge #16586: doc: Mention other ways to conserve memory on compilation
fa7789f doc: Mention other ways to conserve memory on compilation (MarcoFalke) Pull request description: Related to: * Building requires >1GB memory #6658 ACKs for top commit: instagibbs: ACK bitcoin/bitcoin@fa7789f kristapsk: ACK fa7789f Tree-SHA512: 828593de9cfa9f9027c6c8e97abe95e3fad9f2ff50e6512808a8950de4a1f9ea901e724edfb96d7119224c3e38a136e60cb798b34ef682c585a7951e02124a3a
2 parents b799ebc + fa7789f commit c3b605c

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)