build: simplify cc_configure and static link for libc++#7329
build: simplify cc_configure and static link for libc++#7329lizan merged 10 commits intoenvoyproxy:masterfrom
Conversation
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
| "USE_CLANG_CL", | ||
| "CC", | ||
| "CFLAGS", | ||
| "CXX", |
There was a problem hiding this comment.
When building with GCC, does the final link happen with gcc or g++?
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
|
@jmillikin-stripe @PiotrSikora this is ready now and passes all test, PTAL. |
| "ENABLE_LIB_ONLY": "on", | ||
| "CMAKE_BUILD_TYPE": "RelWithDebInfo", | ||
| "CMAKE_INSTALL_LIBDIR": "lib", | ||
| "CMAKE_CXX_COMPILER_FORCED": "on", |
There was a problem hiding this comment.
Shouldn't we set CMAKE_C_COMPILER_FORCED set as well?
There was a problem hiding this comment.
I didn't add it because it wasn't needed, but fine to add as well. no strong opinion on this.
htuch
left a comment
There was a problem hiding this comment.
Looks good, can you verify this doesn't break oss-fuzz? This is a kind of scary change that is worth verifying. Instructions to test are at https://github.com/envoyproxy/envoy/tree/master/test/fuzz#running-fuzz-tests-locally. CC @asraa for fuzz build visibility.
|
This pull request has been automatically marked as stale because it has not had activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
This pull request has been automatically closed because it has not had activity in the last 14 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
|
back from vacation, will check fuzz locally. |
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
|
@htuch should be good along with google/oss-fuzz#2586 |
|
@htuch google/oss-fuzz#2586 is merged, but let's hold merging this until 1.11.0. |
|
@htuch I'm fine either way, let me see if that PR break fuzz with current master. |
|
@htuch ah yeah the oss-fuzz breaks, I'm fine merge this, up to you. |
Signed-off-by: Lizan Zhou lizan@tetrate.io
Description:
Take a similar approach of bazelbuild/bazel@ab9c1f5, which use
-l:libstdc++.ato statically link libstdc++. This makes us closer to remove our owncc_wrapperandcc_configurein the future. Also it will allow us do static link with libc++.Risk Level: Med
Testing: local, CI
Docs Changes:
Release Notes: