-
Notifications
You must be signed in to change notification settings - Fork 4.2k
GH-43688: [C++] Prevent Snappy from disabling RTTI when bundled #43706
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
Changes from 2 commits
fdeae39
20994c5
88de487
c0f4c8a
846fbef
1d0aefa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1355,12 +1355,22 @@ macro(build_snappy) | |
| "-DCMAKE_INSTALL_PREFIX=${SNAPPY_PREFIX}") | ||
| # Snappy unconditionally enables -Werror when building with clang this can lead | ||
| # to build failures by way of new compiler warnings. This adds a flag to disable | ||
| # Werror to the very end of the invocation to override the snappy internal setting. | ||
| # -Werror to the very end of the invocation to override the snappy internal setting. | ||
| set(SNAPPY_ADDITIONAL_CXX_FLAGS "") | ||
| if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
| set(SNAPPY_ADDITIONAL_CXX_FLAGS "${SNAPPY_ADDITIONAL_CXX_FLAGS} -Wno-error") | ||
| endif() | ||
| # Snappy unconditionally disables RTTI, which is incompatible with some other | ||
| # build settings (https://github.com/apache/arrow/issues/43688). | ||
| if(NOT MSVC) | ||
| set(SNAPPY_ADDITIONAL_CXX_FLAGS "${SNAPPY_ADDITIONAL_CXX_FLAGS} -frtti") | ||
|
pitrou marked this conversation as resolved.
Outdated
|
||
| endif() | ||
|
|
||
| if(NOT MSVC) | ||
|
Member
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. Can we remove this
Member
Author
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. No, we cannot, see build error in https://github.com/apache/arrow/actions/runs/10401760097/job/28804899409
Member
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. Ah, https://github.com/apache/arrow/pull/43706/files#r1719156798 will fix it. I'll try it. |
||
| foreach(CONFIG DEBUG MINSIZEREL RELEASE RELWITHDEBINFO) | ||
| list(APPEND | ||
| SNAPPY_CMAKE_ARGS | ||
| "-DCMAKE_CXX_FLAGS_${UPPERCASE_BUILD_TYPE}=${EP_CXX_FLAGS_${CONFIG}} -Wno-error" | ||
| "-DCMAKE_CXX_FLAGS_${UPPERCASE_BUILD_TYPE}=${EP_CXX_FLAGS_${CONFIG}} ${SNAPPY_ADDITIONAL_CXX_FLAGS}" | ||
|
kou marked this conversation as resolved.
Outdated
|
||
| ) | ||
| endforeach() | ||
| endif() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.