Skip to content

Commit

Permalink
Add silly workaround for jemalloc being an OBJECT target
Browse files Browse the repository at this point in the history
  • Loading branch information
neobrain committed Sep 4, 2024
1 parent c8cced8 commit 4f80daa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions FEXCore/Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -377,10 +377,14 @@ if (NOT MINGW_BUILD)
# Only needed for targets that run emulation. For others, use JemallocDummy.
add_library(JemallocLibs INTERFACE)
if (ENABLE_JEMALLOC)
target_link_libraries(JemallocLibs INTERFACE FEX_jemalloc)
add_library(JemallocLibsSillyWorkaround Nothing.cpp)
target_link_libraries(JemallocLibsSillyWorkaround PRIVATE FEX_jemalloc)
target_link_libraries(JemallocLibs INTERFACE JemallocLibsSillyWorkaround)
endif()
if (ENABLE_JEMALLOC_GLIBC_ALLOC)
target_link_libraries(JemallocLibs INTERFACE FEX_jemalloc_glibc)
add_library(JemallocLibsSillyWorkaround2 Nothing.cpp)
target_link_libraries(JemallocLibsSillyWorkaround PRIVATE FEX_jemalloc_glibc)
target_link_libraries(JemallocLibs INTERFACE JemallocLibsSillyWorkaround2)
endif()
endif()

Expand Down
Empty file added FEXCore/Source/Nothing.cpp
Empty file.

0 comments on commit 4f80daa

Please sign in to comment.