-
Notifications
You must be signed in to change notification settings - Fork 365
[sonic-sairedis] Upgrade to c++17 #1069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
1a23223
[sonic-sairedis] Upgrade to c++17
Junchao-Mellanox c614caf
Merge branch 'Azure:master' into upgrade-cpp17
Junchao-Mellanox cb8f8ed
Change azure pipeline image from buster to bullseye
Junchao-Mellanox 7b64dac
Fix issue: swig3.0 cannot be found on bullseye
Junchao-Mellanox 180db78
Disable python2 extension build on bullseye
Junchao-Mellanox 9cf2f2a
Fix issue: change apt repo to debian 11
Junchao-Mellanox edaebf8
Fix issue: dependencies are all built with buster, hardcode buster he…
Junchao-Mellanox File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -117,7 +117,7 @@ AC_PATH_PROGS(SWIG, [swig3.0 swig]) | |
| CXXFLAGS_COMMON="" | ||
| CXXFLAGS_COMMON+=" -ansi" | ||
| CXXFLAGS_COMMON+=" -fPIC" | ||
| CXXFLAGS_COMMON+=" -std=c++14" | ||
| CXXFLAGS_COMMON+=" -std=c++17" | ||
| CXXFLAGS_COMMON+=" -Wall" | ||
| CXXFLAGS_COMMON+=" -Wcast-align" | ||
| CXXFLAGS_COMMON+=" -Wcast-qual" | ||
|
|
@@ -157,6 +157,7 @@ CXXFLAGS_COMMON+=" -Wwrite-strings" | |
| CXXFLAGS_COMMON+=" -Wno-switch-default" | ||
| CXXFLAGS_COMMON+=" -Wconversion" | ||
| CXXFLAGS_COMMON+=" -Wno-psabi" | ||
| CXXFLAGS_COMMON+=" -Wno-register" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we really need this? I search codebase and did not find register storage class specifier. |
||
|
|
||
| SAVED_FLAGS="$CXXFLAGS" | ||
| CXXFLAGS="-Wcast-align=strict" | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on .azure-pipelines/build-swss-template.yml tou set explicit target to buster, but here to bullseye, will that be a conflict?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have to do this because there is no other pipeline that are using bullseye. So, if I do not set explicit target to buster in .azure-pipelines/build-swss-template.yml, it cannot download dependencies like "libnl*".