-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-14708: [C++] Adding missing abseil dependencies to enable static flight build #11889
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 8 commits
d6d7d09
b6e8a23
26d27e6
95c6df8
aa4f1ca
c073c60
25b4060
61ca815
fa7fb39
b4c118b
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 |
|---|---|---|
|
|
@@ -3412,6 +3412,14 @@ macro(build_absl_once) | |
| absl::raw_logging_internal | ||
| absl::strings | ||
| absl::time_zone) | ||
| if(APPLE) | ||
| # This is due to upstream absl::cctz issue | ||
| # https://github.com/abseil/abseil-cpp/issues/283 | ||
| find_library(CoreFoundation CoreFoundation) | ||
| set_property(TARGET absl::time | ||
lidavidm marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| APPEND | ||
| PROPERTY INTERFACE_LINK_LIBRARIES ${CoreFoundation}) | ||
| endif() | ||
| set_property(TARGET absl::type_traits PROPERTY INTERFACE_LINK_LIBRARIES absl::config) | ||
| set_property(TARGET absl::utility | ||
| PROPERTY INTERFACE_LINK_LIBRARIES absl::base_internal absl::config | ||
|
|
@@ -3584,13 +3592,28 @@ macro(build_grpc) | |
| INTERFACE_INCLUDE_DIRECTORIES "${GRPC_INCLUDE_DIR}") | ||
|
|
||
| set(GRPC_GPR_ABSL_LIBRARIES | ||
| absl::bad_optional_access | ||
| absl::base | ||
| absl::statusor | ||
| absl::status | ||
| absl::cord | ||
| absl::debugging_internal | ||
| absl::demangle_internal | ||
| absl::graphcycles_internal | ||
| absl::int128 | ||
| absl::malloc_internal | ||
| absl::raw_logging_internal | ||
| absl::spinlock_wait | ||
| absl::stacktrace | ||
| absl::status | ||
| absl::statusor | ||
| absl::strings | ||
| absl::strings_internal | ||
| absl::str_format_internal | ||
| absl::symbolize | ||
| absl::synchronization | ||
| absl::time) | ||
| absl::throw_delegate | ||
| absl::time | ||
| absl::time_zone) | ||
|
||
|
|
||
| add_library(gRPC::gpr STATIC IMPORTED) | ||
| set_target_properties(gRPC::gpr | ||
| PROPERTIES IMPORTED_LOCATION "${GRPC_STATIC_LIBRARY_GPR}" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,7 @@ set(ARROW_LIBRARY_PATH_SUFFIXES "@ARROW_LIBRARY_PATH_SUFFIXES@") | |
| set(ARROW_INCLUDE_PATH_SUFFIXES "@ARROW_INCLUDE_PATH_SUFFIXES@") | ||
| set(ARROW_SYSTEM_DEPENDENCIES "@ARROW_SYSTEM_DEPENDENCIES@") | ||
| set(ARROW_BUNDLED_STATIC_LIBS "@ARROW_BUNDLED_STATIC_LIBS@") | ||
| set(ARROW_STATIC_INSTALL_INTERFACE_LIBS "@ARROW_STATIC_INSTALL_INTERFACE_LIBS_REAL@") | ||
|
|
||
| include("${CMAKE_CURRENT_LIST_DIR}/ArrowOptions.cmake") | ||
|
|
||
|
|
@@ -79,11 +80,12 @@ if(NOT (TARGET arrow_shared OR TARGET arrow_static)) | |
| PROPERTIES | ||
| IMPORTED_LOCATION | ||
| "${arrow_lib_dir}/${CMAKE_STATIC_LIBRARY_PREFIX}arrow_bundled_dependencies${CMAKE_STATIC_LIBRARY_SUFFIX}" | ||
| ) | ||
|
|
||
| INTERFACE_LINK_LIBRARIES | ||
| ${ARROW_STATIC_INSTALL_INTERFACE_LIBS} | ||
|
||
| ) | ||
| get_property(arrow_static_interface_link_libraries | ||
| TARGET arrow_static | ||
| PROPERTY INTERFACE_LINK_LIBRARIES) | ||
| TARGET arrow_static | ||
| PROPERTY INTERFACE_LINK_LIBRARIES) | ||
| set_target_properties( | ||
| arrow_static PROPERTIES INTERFACE_LINK_LIBRARIES | ||
| "${arrow_static_interface_link_libraries};arrow_bundled_dependencies") | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -534,7 +534,7 @@ else() | |
| endif() | ||
|
|
||
| if(ARROW_BUILD_BUNDLED_DEPENDENCIES) | ||
| string(APPEND ARROW_PC_LIBS_PRIVATE " -larrow_bundled_dependencies") | ||
|
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. Why is this removed?
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. Returned. |
||
| set(ARROW_STATIC_INSTALL_INTERFACE_LIBS_REAL ${ARROW_STATIC_INSTALL_INTERFACE_LIBS}) | ||
|
||
| endif() | ||
| # Need -latomic on Raspbian. | ||
| # See also: https://issues.apache.org/jira/browse/ARROW-12860 | ||
|
|
@@ -563,10 +563,10 @@ add_arrow_lib(arrow | |
| ${ARROW_SHARED_PRIVATE_LINK_LIBS} | ||
| STATIC_LINK_LIBS | ||
| ${ARROW_STATIC_LINK_LIBS} | ||
| ${ARROW_STATIC_INSTALL_INTERFACE_LIBS_REAL} | ||
| SHARED_INSTALL_INTERFACE_LIBS | ||
| ${ARROW_SHARED_INSTALL_INTERFACE_LIBS} | ||
| STATIC_INSTALL_INTERFACE_LIBS | ||
| ${ARROW_STATIC_INSTALL_INTERFACE_LIBS}) | ||
| STATIC_INSTALL_INTERFACE_LIBS) | ||
|
||
|
|
||
| add_dependencies(arrow ${ARROW_LIBRARIES}) | ||
|
|
||
|
|
||
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.
Hmm, did you mean to remove this parameter?
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.
Restored.