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
|
### GNU make
|
||||||
|
|
||||||
Simple build (no dependencies):
|
Simple, unoptimized build (no dependencies):
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
make
|
make
|
||||||
|
@ -69,7 +69,7 @@ make
|
||||||
The recommended release build is:
|
The recommended release build is:
|
||||||
|
|
||||||
```shell
|
```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:
|
Flags:
|
||||||
|
@ -83,6 +83,9 @@ Flags:
|
||||||
3. `HAVE_RULES=yes`
|
3. `HAVE_RULES=yes`
|
||||||
Enable rules (PCRE is required if this is used)
|
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)
|
### g++ (for experts)
|
||||||
|
|
||||||
If you just want to build Cppcheck without dependencies then you can use this command:
|
If you just want to build Cppcheck without dependencies then you can use this command:
|
||||||
|
|
Loading…
Reference in New Issue