File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,12 @@ if (WAMR_BUILD_JIT EQUAL 1)
99
99
# Enable Lazy JIT by default
100
100
set (WAMR_BUILD_LAZY_JIT 1 )
101
101
endif ()
102
+
103
+ # In Debug mode, always use release builds of pre-built dependency libraries
104
+ if (WAMR_BUILD_PLATFORM STREQUAL "windows" AND MSVC )
105
+ add_compile_options ($< $< CONFIG:Debug> :/MD> )
106
+ endif ()
107
+
102
108
if (NOT DEFINED LLVM_DIR )
103
109
set (LLVM_SRC_ROOT "${WAMR_ROOT_DIR} /core/deps/llvm" )
104
110
set (LLVM_BUILD_ROOT "${LLVM_SRC_ROOT} /build" )
Original file line number Diff line number Diff line change @@ -159,6 +159,11 @@ if (WAMR_BUILD_DEBUG_AOT EQUAL 1)
159
159
endif ()
160
160
161
161
# Enable LLVM
162
+ # In Debug mode, always use release builds of pre-built dependency libraries
163
+ if (WAMR_BUILD_PLATFORM STREQUAL "windows" AND MSVC )
164
+ add_compile_options ($< $< CONFIG:Debug> :/MD> )
165
+ endif ()
166
+
162
167
if (NOT WAMR_BUILD_WITH_CUSTOM_LLVM )
163
168
set (LLVM_SRC_ROOT "${PROJECT_SOURCE_DIR} /../core/deps/llvm" )
164
169
if (NOT EXISTS "${LLVM_SRC_ROOT} /build" )
You can’t perform that action at this time.
0 commit comments