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
This commit is contained in:
Vilgot Fredenberg 2018-04-08 14:36:05 +02:00 committed by pajlada
parent abff7bdbca
commit c116df96e0

View file

@ -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 <number of threads>" 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-<arch>-boost mingw-w64-<arch>-qt5 mingw-w64-<arch>-rapidjson` where `<arch>` is x86_64 or i686
2. go into the project directory
3. create build folder `mkdir build && cd build`