Added ARM32 support

This commit is contained in:
alejo committed 2026-11-03 15:22:24 -03:00
1 parent df792729ef
commit 1212cb9dbe
36 files changed
+2381 -783

No files matched your search

+16 -4
View File
@@ -138,17 +138,29 @@ if(NOT TARGET hotreload_lib)
OUTPUT_NAME hotreload
POSITION_INDEPENDENT_CODE ON)
# hot_reload::Context uses std::shared_mutex internally (for the thread-safety guarantee
# Context.hpp's own doc comment describes), and Demangle.cpp's MSVC branch uses std::mutex --
# both need pthread linked explicitly on Linux with glibc older than 2.34 (newer glibc merged
# libpthread into libc itself, making this a no-op there), matching
# source/HotReload/CMakeLists.txt exactly.
find_package(Threads REQUIRED)
target_link_libraries(hotreload_lib PUBLIC Threads::Threads)
if(NOT WIN32)
# dlopen/dlclose/dlinfo (ModuleHandle.cpp). PUBLIC: for a STATIC
# library this needs to reach whatever executable ultimately
# links hotreload_lib, matching source/HotReload/CMakeLists.txt.
target_link_libraries(hotreload_lib PUBLIC ${CMAKE_DL_LIBS})
endif()
if(MSVC)
# The MSVC *ABI*, not just MSVC command-line syntax: a GNU-style clang++ targeting the
# MSVC ABI has MSVC=false but CMAKE_CXX_SIMULATE_ID=MSVC (CMake sets that exactly when the
# compiler defines _MSC_VER, the macro Demangle.cpp's own #if keys on) -- see the comment on
# the same condition in source/HotReload/CMakeLists.txt for the full reasoning.
if(MSVC OR CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
# UnDecorateSymbolName (Demangle.cpp) lives in dbghelp.lib, which
# MSVC does not link by default. Guarded on MSVC specifically
# (true for cl.exe and clang-cl, false for MinGW), matching
# source/HotReload/CMakeLists.txt exactly.
# MSVC does not link by default. Guarded on the MSVC ABI
# (cl.exe, clang-cl, or GNU-style clang++ targeting MSVC; false
# for MinGW), matching source/HotReload/CMakeLists.txt exactly.
target_link_libraries(hotreload_lib PUBLIC dbghelp)
endif()