Skip to content

Commit

Permalink
readme: document proposed CXXFLAGS for release build
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskrgr committed Jan 18, 2016
1 parent 79aec55 commit 5440e0d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ http://software-download.name/pcre-library-windows/

### GNU make

Simple build (no dependencies):
Simple, unoptimized build (no dependencies):

```shell
make
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 5440e0d

Please sign in to comment.