Skip to content

Commit

Permalink
re-enable macOS build and don't link Boost::stacktrace at all
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Mar 3, 2024
1 parent 6281463 commit f085668
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/GenerateRelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest ]
os: [ ubuntu-latest, windows-latest, macos-latest ]
fail-fast: true

steps:
Expand Down
29 changes: 15 additions & 14 deletions ARRCON/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,21 @@ target_link_libraries(ARRCON PRIVATE
Boost::asio
)

# Link Boost::Stacktrace
# see https://www.boost.org/doc/libs/1_81_0/doc/html/stacktrace/configuration_and_build.html
if(ARRCON_DISABLE_STACKTRACE OR CMAKE_BUILD_TYPE STREQUAL "Release")
# Disable stacktrace
target_link_libraries(ARRCON PRIVATE boost_stacktrace_noop)
elseif(MSVC)
# Use COM stacktrace
target_link_libraries(ARRCON PRIVATE boost_stacktrace_windbg ole32 dbgeng)
elseif(APPLE)
# Use addr2line
target_link_libraries(ARRCON PRIVATE boost_stacktrace_basic libdl)
else()
# Use POSIX backtrace
target_link_libraries(ARRCON PRIVATE boost_stacktrace_backtrace dl backtrace)
if (NOT APPLE)

# Link Boost::Stacktrace
# see https://www.boost.org/doc/libs/1_81_0/doc/html/stacktrace/configuration_and_build.html
if(ARRCON_DISABLE_STACKTRACE OR CMAKE_BUILD_TYPE STREQUAL "Release")
# Disable stacktrace
target_link_libraries(ARRCON PRIVATE boost_stacktrace_noop)
elseif(MSVC)
# Use COM stacktrace
target_link_libraries(ARRCON PRIVATE boost_stacktrace_windbg ole32 dbgeng)
else()
# Use POSIX backtrace
target_link_libraries(ARRCON PRIVATE boost_stacktrace_backtrace dl backtrace)
endif()

endif()

include(PackageInstaller)
Expand Down

0 comments on commit f085668

Please sign in to comment.