Skip to content

Commit

Permalink
Merge branch 'main' of github.com:WebAssembly/binaryen into stack-swi…
Browse files Browse the repository at this point in the history
…tching
  • Loading branch information
dhil committed Jan 28, 2025
2 parents 0e5caf2 + 716e3c7 commit 640aa92
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,11 @@ if(MSVC)
CMAKE_C_FLAGS_MINSIZEREL)
string(REGEX REPLACE "(^| )[/-]D *NDEBUG($| )" " "
"${flags_var_to_scrub}" "${${flags_var_to_scrub}}")

# Compile with `/MT` to link against `libcmt.lib`, removing a dependency
# on `msvcrt.dll`. May result in slightly larger binaries but they should
# be more portable across systems.
string(REPLACE "/MD" "/MT" ${flags_var_to_scrub} "${${flags_var_to_scrub}}")
endforeach()
# Compile with `/MT` to link against `libcmt.lib`, removing a dependency
# on `msvcrt.dll`. May result in slightly larger binaries but they should
# be more portable across systems.
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")
endif()

add_link_flag("/STACK:8388608")
Expand Down

0 comments on commit 640aa92

Please sign in to comment.