Skip to content

Commit

Permalink
win32: disable snmallocshim which seems to cause compat issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Dec 1, 2024
1 parent 5a1e36a commit 1011870
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ if(CMAKE_SYSTEM_NAME MATCHES Emscripten)
# set(CMAKE_EXECUTABLE_SUFFIX ".html")
endif()

set(SRCS
set(SRCS
"${CMAKE_CURRENT_SOURCE_DIR}/Application.hpp"
"${CMAKE_CURRENT_SOURCE_DIR}/Application.cpp"
"${CMAKE_CURRENT_SOURCE_DIR}/main.cpp"
Expand Down Expand Up @@ -83,7 +83,10 @@ if(SCORE_STATIC_PLUGINS)
endif()

if(TARGET snmalloc)
target_link_libraries(${APPNAME} PUBLIC snmalloc snmallocshim-static)
target_link_libraries(${APPNAME} PUBLIC snmalloc)
if(NOT WIN32)
target_link_libraries(${APPNAME} PUBLIC snmallocshim-static)
endif()
endif()

target_compile_definitions(${APPNAME} PUBLIC
Expand Down

0 comments on commit 1011870

Please sign in to comment.