From c116df96e017c8213e20eb01f381ef7925471a4b Mon Sep 17 00:00:00 2001 From: Vilgot Fredenberg Date: Sun, 8 Apr 2018 14:36:05 +0200 Subject: [PATCH] Aditional compile flags (#316) * aditional compile flags I have been using these flags while compiling wihtout any problems so I thought I'd share them. [Here is a really long source on GCC optimization](https://wiki.gentoo.org/wiki/GCC_optimization) -O3 might work with chatterino however there might be no speed gains (even negative in some cases (and also it increases compilation time)) so that's why I use -O2 * Now it doesn't error Apparenly qt-creator doesn't like the gentoo standard syntax, also spelling --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 8aaaaaa7c..5b90c116a 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ download the [boost library](https://sourceforge.net/projects/boost/files/boost/ #### Using MSYS2 Building using MSYS2 can be quite easier process. Check out MSYS2 at [msys2.org](http://www.msys2.org/). Be sure to add "-j " as a make argument so it will use all your cpu cores to build. [example setup](https://i.imgur.com/qlESlS1.png) +You can also add "-o2" to optimize the final binary size but increase compilation time, and add "-pipe" to use more ram in compilation but increase compilation speed 1. open appropriate MSYS2 terminal and do `pacman -S mingw-w64--boost mingw-w64--qt5 mingw-w64--rapidjson` where `` is x86_64 or i686 2. go into the project directory 3. create build folder `mkdir build && cd build`