readme: document proposed CXXFLAGS for release build
This commit is contained in:
parent
79aec559d5
commit
5440e0d5a0
|
@ -60,7 +60,7 @@ http://software-download.name/pcre-library-windows/
|
|||
|
||||
### GNU make
|
||||
|
||||
Simple build (no dependencies):
|
||||
Simple, unoptimized build (no dependencies):
|
||||
|
||||
```shell
|
||||
make
|
||||
|
@ -69,7 +69,7 @@ make
|
|||
The recommended release build is:
|
||||
|
||||
```shell
|
||||
make SRCDIR=build CFGDIR=cfg HAVE_RULES=yes
|
||||
make SRCDIR=build CFGDIR=cfg HAVE_RULES=yes CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function"
|
||||
```
|
||||
|
||||
Flags:
|
||||
|
@ -83,6 +83,9 @@ Flags:
|
|||
3. `HAVE_RULES=yes`
|
||||
Enable rules (PCRE is required if this is used)
|
||||
|
||||
4. `CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare"`
|
||||
Enables most compiler optimizations, disables cppcheck-internal debugging code and enables basic compiler warnings.
|
||||
|
||||
### g++ (for experts)
|
||||
|
||||
If you just want to build Cppcheck without dependencies then you can use this command:
|
||||
|
|
Loading…
Reference in New Issue