Skip to content

Commit

Permalink
iox-eclipse-iceoryx#2301 Remove flag to prevent 32 bit builds
Browse files Browse the repository at this point in the history
iox-eclipse-iceoryx#2301 Squash me
  • Loading branch information
elBoberido committed Jun 7, 2024
1 parent 7b0dabe commit 4794488
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 18 deletions.
3 changes: 1 addition & 2 deletions doc/website/release-notes/iceoryx-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

- The minimal supported GCC compiler is now 8.3
- The required C++ standard is now C++17
- Experimental 32-bit support for all platforms supporting 64-bit atomic operations

**Features:**

Expand Down Expand Up @@ -1465,5 +1466,3 @@
```
64. The non-functional `iox::popo::Node` was removed
65. 32-bit support is disabled by default. For development purposes iceoryx can be build with the `-DIOX_IGNORE_32_BIT_CHECK=ON`
1 change: 0 additions & 1 deletion iceoryx_hoofs/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ configure_file(
src = "cmake/iceoryx_hoofs_deployment.hpp.in",
out = "generated/include/iox/iceoryx_hoofs_deployment.hpp",
config = {
"IOX_IGNORE_32_BIT_CHECK_FLAG": "false",
"IOX_MAX_NAMED_PIPE_MESSAGE_SIZE": "4096",
"IOX_MAX_NAMED_PIPE_NUMBER_OF_MESSAGES": "10",
# FIXME: for values see "iceoryx_hoofs/cmake/IceoryxHoofsDeployment.cmake" ... for now some nice defaults
Expand Down
5 changes: 0 additions & 5 deletions iceoryx_hoofs/cmake/IceoryxHoofsDeployment.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ configure_option(
DEFAULT_VALUE 10
)

if(IOX_IGNORE_32_BIT_CHECK)
set(IOX_IGNORE_32_BIT_CHECK_FLAG true)
else()
set(IOX_IGNORE_32_BIT_CHECK_FLAG false)
endif()
message(STATUS "[i] IOX_EXPERIMENTAL_POSH_FLAG: ${IOX_EXPERIMENTAL_POSH_FLAG}")

message(STATUS "[i] <<<<<<<<<<<<<< End iceoryx_hoofs configuration: >>>>>>>>>>>>>>")
2 changes: 0 additions & 2 deletions iceoryx_hoofs/cmake/iceoryx_hoofs_deployment.hpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ constexpr iox::log::LogLevel IOX_MINIMAL_LOG_LEVEL = iox::log::LogLevel::@IOX_MI
constexpr uint64_t IOX_MAX_NAMED_PIPE_MESSAGE_SIZE = static_cast<uint64_t>(@IOX_MAX_NAMED_PIPE_MESSAGE_SIZE@);
constexpr uint32_t IOX_MAX_NAMED_PIPE_NUMBER_OF_MESSAGES = static_cast<uint32_t>(@IOX_MAX_NAMED_PIPE_NUMBER_OF_MESSAGES@);

constexpr bool IOX_IGNORE_32_BIT_CHECK_FLAG = @IOX_IGNORE_32_BIT_CHECK_FLAG@;

} // namespace build
} // namespace iox

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ uint64_t pageSize() noexcept;
/// @return True if called on 32-bit, false if not 32-bit system
constexpr bool isCompiledOn32BitSystem() noexcept
{
static_assert(build::IOX_IGNORE_32_BIT_CHECK_FLAG || INTPTR_MAX > INT32_MAX,
"iceoryx is only supported on 64-bit systems. Using it on 32-bit will result in race conditions in "
"the lock-free constructs!");

return INTPTR_MAX == INT32_MAX;
}
} // namespace detail
Expand Down
2 changes: 0 additions & 2 deletions iceoryx_meta/build_options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ option(TEST_WITH_ADDITIONAL_USER "Build Test with additional user accounts for t
option(TEST_WITH_HUGE_PAYLOAD "Build Tests which use payload bigger than 2GB" OFF)
option(TOML_CONFIG "TOML support for RouDi with dynamic configuration" ON)
option(IOX_EXPERIMENTAL_POSH "Export experimental posh features (no guarantees)" OFF)
option(IOX_IGNORE_32_BIT_CHECK "Ignores the check for 32 bit systems! It is not recommended to turn this on in production systems" OFF)
option(IOX_REPRODUCIBLE_BUILD "Create reproducible builds by omit setting the build timestamp in the version header" ON)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # "Create compile_commands.json file"
Expand Down Expand Up @@ -97,6 +96,5 @@ function(show_config_options)
message(" TEST_WITH_HUGE_PAYLOAD ..............: " ${TEST_WITH_HUGE_PAYLOAD})
message(" TOML_CONFIG..........................: " ${TOML_CONFIG})
message(" IOX_EXPERIMENTAL_POSH................: " ${IOX_EXPERIMENTAL_POSH})
message(" IOX_IGNORE_32_BIT_CHECK..............: " ${IOX_IGNORE_32_BIT_CHECK})
message(" IOX_REPRODUCIBLE_BUILD...............: " ${IOX_REPRODUCIBLE_BUILD})
endfunction()
2 changes: 1 addition & 1 deletion iceoryx_posh/source/roudi/roudi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RouDi::RouDi(RouDiMemoryInterface& roudiMemoryInterface,
{
if (detail::isCompiledOn32BitSystem())
{
IOX_LOG(WARN, "Runnning RouDi on 32-bit architectures is not supported! Use at your own risk!");
IOX_LOG(WARN, "Runnning RouDi on 32-bit architectures is experimental! Use at your own risk!");
}
m_processIntrospection.registerPublisherPort(
PublisherPortUserType(m_prcMgr->addIntrospectionPublisherPort(IntrospectionProcessService)));
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/source/runtime/posh_runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ PoshRuntime::PoshRuntime(optional<const RuntimeName_t*> name) noexcept
{
if (detail::isCompiledOn32BitSystem())
{
IOX_LOG(WARN, "Running applications on 32-bit architectures is not supported! Use at your own risk!");
IOX_LOG(WARN, "Running applications on 32-bit architectures is experimental! Use at your own risk!");
}
}

Expand Down

0 comments on commit 4794488

Please sign in to comment.