diff options
author | fanquake <fanquake@gmail.com> | 2019-08-14 12:44:27 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2019-08-14 14:12:26 +0800 |
commit | c3b605cf130187d8da0b79e6b7e99ad231d2c031 (patch) | |
tree | 8c4d5c46ccdb7868311d04e2d00f70d83e0cc014 | |
parent | b799ebcc17ea914b6e50f97f008f498ca31e0f36 (diff) | |
parent | fa7789f7317229f7366f7a132df199e005ed3bc6 (diff) | |
download | bitcoin-c3b605cf130187d8da0b79e6b7e99ad231d2c031.tar.xz |
Merge #16586: doc: Mention other ways to conserve memory on compilation
fa7789f7317229f7366f7a132df199e005ed3bc6 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 https://github.com/bitcoin/bitcoin/pull/16586/commits/fa7789f7317229f7366f7a132df199e005ed3bc6
kristapsk:
ACK fa7789f7317229f7366f7a132df199e005ed3bc6
Tree-SHA512: 828593de9cfa9f9027c6c8e97abe95e3fad9f2ff50e6512808a8950de4a1f9ea901e724edfb96d7119224c3e38a136e60cb798b34ef682c585a7951e02124a3a
-rw-r--r-- | doc/build-unix.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/build-unix.md b/doc/build-unix.md index f1bc770dfb..9aca0336c0 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 |