Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ set(HPX_VERSION_FULL
)

set(HPX_LIBRARY_VERSION "${HPX_VERSION}")
set(HPX_SOVERSION ${HPX_VERSION_MAJOR})
# HPX does not keep its ABI stable between any two releases, so the SONAME of
# its libraries holds the full version: a binary built against one release
# doesn't start with the libraries of another, instead of silently using a
# mismatched ABI
set(HPX_SOVERSION "${HPX_VERSION}")
set(HPX_PACKAGE_NAME HPX)
# To keep track of the hpx_root when other subprojects are declared
set(HPX_SOURCE_DIR "${PROJECT_SOURCE_DIR}")
Expand Down
5 changes: 4 additions & 1 deletion docs/sphinx/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ two minor releases. In rare cases do we outright remove old and unused
functionality without a deprecation period.

We do not provide any ABI compatibility guarantees between any versions, debug
and release builds, and builds with different C++ standards.
and release builds, and builds with different C++ standards. The shared
libraries of |hpx| therefore carry the full version in their SONAME (for
instance ``libhpx.so.2.1.0``): an application built against one release does
not start with the libraries of another release, it has to be rebuilt.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved

..
We follow |semver|_ for our API (starting from |hpx| 2.0.0). This means that
Expand Down
6 changes: 6 additions & 0 deletions docs/sphinx/releases/whats_new_2_1_0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ Breaking changes
``hpx/hpx_main.hpp`` has to link ``HPX::wrap_main`` (or
``HPX::auto_wrap_main``), which was previously avoidable by setting the
option to ``OFF``.
- The SONAME of the |hpx| libraries now holds the full version (for instance
``libhpx.so.2.1.0`` instead of ``libhpx.so.2``), as |hpx| keeps no ABI
compatibility between releases. Applications and libraries built against an
earlier release no longer start with the libraries of this one, instead of
running with a mismatched ABI; rebuild them. This also applies to the
components and plugins of |hpx|. Windows is not affected.

Supervision Module
==================
Expand Down
Loading