-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Update to the latest Velox submodule to add support for searching archives from S3; Globally ignore stringop-overflow
warnings to mitigate GCC bug which is triggered in 3rd-party code.
#52
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 5 commits
0597c11
25fab3e
7522652
0ce1c92
b8470f5
be052cb
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 | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -38,6 +38,21 @@ set(DISABLED_WARNINGS | |||||||||||||||||||||||||||||
-Wno-deprecated-declarations \ | ||||||||||||||||||||||||||||||
-Wno-restrict") | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
# Disable -Wstringop-overflow to avoid a false positive in the following compiler versions. See | ||||||||||||||||||||||||||||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117983 | ||||||||||||||||||||||||||||||
# | ||||||||||||||||||||||||||||||
# NOTE: Typically, this is disabled using a VELOX_SUPPRESS_STRINGOP guard within the code; but that | ||||||||||||||||||||||||||||||
# doesn't apply to 3rd-party libraries, so we need to disable it globally for now. | ||||||||||||||||||||||||||||||
if("GNU" STREQUAL "${CMAKE_CXX_COMPILER_ID}" | ||||||||||||||||||||||||||||||
AND ((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12 | ||||||||||||||||||||||||||||||
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.5) | ||||||||||||||||||||||||||||||
OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13 | ||||||||||||||||||||||||||||||
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13.4) | ||||||||||||||||||||||||||||||
OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 14 | ||||||||||||||||||||||||||||||
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14.3))) | ||||||||||||||||||||||||||||||
|
if("GNU" STREQUAL "${CMAKE_CXX_COMPILER_ID}" | |
AND ((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12 | |
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.5) | |
OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13 | |
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13.4) | |
OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 14 | |
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14.3))) | |
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" | |
AND ((CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 12 | |
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 12.5) | |
OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 13 | |
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13.4) | |
OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 14 | |
AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 14.3))) |
🤖 Prompt for AI Agents
In presto-native-execution/CMakeLists.txt around lines 37-43, the if()
conditional currently uses "GNU" STREQUAL "${CMAKE_CXX_COMPILER_ID}" which is
unconventional; change it to CMAKE_CXX_COMPILER_ID STREQUAL "GNU" while keeping
the existing version range checks unchanged, and if you later move this check
into target properties use generator expressions instead of a plain if().
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.
🧹 Nitpick (assertive)
Clarify comment: suppression is target-scoped, not global.
The note says “disable it globally,” but the code applies it only to log_surgeon. Adjust the wording to avoid confusion.
Apply this diff to align the comment with actual scope:
📝 Committable suggestion
🤖 Prompt for AI Agents