-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As newer & stricter C++ compiler versions are released, users run into issues when building and installing bmv2. While we should keep using Werror when developing and running CI tests, the flag should probably not be used by default. A new configure flags (`--enable-Werror`) can be used to add `Werror` to `CXXFLAGS`. Users should use the configure flags instead of adding `Werror` to `CXXFLAGS` themselves, as the project includes some auto-generated sources.
- Loading branch information
1 parent
6e35913
commit f45c521
Showing
6 changed files
with
50 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
You can fork the repo and submit a pull request in Github. For more information | ||
send us an email ([email protected]). | ||
|
||
### Apache CLA | ||
|
||
All developers must sign the [P4.org](http://p4.org) CLA and return it to | ||
([email protected]) before making contributions. The CLA is available | ||
[here](http://p4.org/wp-content/uploads/2015/07/P4_Language_Consortium_Membership_Agreement.pdf). | ||
|
||
### Coding guidelines | ||
|
||
Any contribution to the C++ core code (in particular the [bm_sim](src/bm_sim) | ||
module) must respect the coding guidelines. We rely heavily on the [Google C++ | ||
Style Guide](https://google.github.io/styleguide/cppguide.html), with some | ||
differences listed in this repository's | ||
[wiki](https://github.com/p4lang/behavioral-model/wiki/Coding-guidelines). Every | ||
submitted pull request will go through our Travis tests, which include running | ||
`cpplint.py` to ensure correct style and formatting. | ||
|
||
### Building locally | ||
|
||
We recommend that you build with a recent C++ compiler and with `-Werror` since | ||
our CI tests use this flag. In order to build with the same flags as the CI | ||
tester, please run `configure` with the following flags: | ||
|
||
./configure --with-pdfixed --with-pi --with-stress-tests --enable-debugger --enable-Werror |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -244,17 +244,4 @@ Please submit an issue with the appropriate label on | |
|
||
### How can I contribute ? | ||
|
||
You can fork the repo and submit a pull request in Github. For more information | ||
send us an email ([email protected]). | ||
|
||
All developers must sign the [P4.org](http://p4.org) CLA and return it to | ||
([email protected]) before making contributions. The CLA is available | ||
[here](http://p4.org/wp-content/uploads/2015/07/P4_Language_Consortium_Membership_Agreement.pdf). | ||
|
||
Any contribution to the C++ core code (in particular the [bm_sim](src/bm_sim) | ||
module) must respect the coding guidelines. We rely heavily on the [Google C++ | ||
Style Guide](https://google.github.io/styleguide/cppguide.html), with some | ||
differences listed in this repository's | ||
[wiki](https://github.com/p4lang/behavioral-model/wiki/Coding-guidelines). Every | ||
submitted pull request will go through our Travis tests, which include running | ||
`cpplint.py` to ensure correct style and formatting. | ||
See [CONTRIBUTING.md](CONTRIBUTING.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters