Skip to content

Commit

Permalink
Remove static linking for cross compilation (#164)
Browse files Browse the repository at this point in the history
Fixes #162.
  • Loading branch information
nicosmd authored Apr 29, 2023
1 parent 6ef8880 commit c1fe276
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tool/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,6 @@
# builds tools

add_executable(foonathan_memory_node_size_debugger test_types.hpp node_size_debugger.hpp node_size_debugger.cpp)
if (CMAKE_CROSSCOMPILING)
# statically link when cross compiling so emulator doesn't need library paths
if (MSVC)
set_target_properties(foonathan_memory_node_size_debugger PROPERTIES LINK_FLAGS "/WHOLEARCHIVE")
else()
set_target_properties(foonathan_memory_node_size_debugger PROPERTIES LINK_FLAGS "-static")
endif()
endif()
if (MSVC)
target_compile_options(foonathan_memory_node_size_debugger PRIVATE "/bigobj")
endif()
Expand Down

0 comments on commit c1fe276

Please sign in to comment.