-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[build] Publish node packages with RelWithDebInfo #9497
Conversation
d87ddad
to
65ce532
Compare
CMakeLists.txt
Outdated
@@ -76,7 +76,7 @@ if(APPLE AND CMAKE_CXX_COMPILER_ID MATCHES ".*Clang") | |||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=unused-command-line-argument") | |||
endif() | |||
set(CMAKE_CXX_FLAGS_RELEASE "-Os -DNDEBUG") | |||
|
|||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O3 -DNDEBUG") |
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.
There's also a set(CMAKE_CONFIGURATION_TYPES Debug Release)
in line 71 that we should add this to.
65ce532
to
70deb47
Compare
@bsudekum @springmeyer are you 👍 in bumping up the version from |
|
70deb47
to
c231d33
Compare
@@ -3,10 +3,13 @@ | |||
set -e | |||
set -o pipefail | |||
|
|||
if [[ "${PUBLISH:-}" == "true" ]]; then | |||
if [[ "${BUILDTYPE}" == "Release" ]]; then | |||
if [[ -n ${PUBLISH:-} ]]; then |
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.
This looks good - but I want to mention that I think it would work just the same without the -n
.
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.
Thanks for getting this landed!
Note: I've documented the reason for this approach at https://github.com/mapbox/cpp/blob/master/glossary.md#debuggable-release-build |
(sorry did not mean to close) |
c231d33
to
fb5e683
Compare
Thanks for landing @brunoabinader - @bsudekum - do you plan/have a timeline for rolling this out? Curious to have confirmation that it helps with backtrace quality for the crashes you've seen in production. |
Follow-up to #9154 - Make node release binaries debuggable - after switching to CircleCI.
From @bsudekum original notes:
/cc @springmeyer @tmpsantos