Enable MASM automatically in runtime_lib.cmake (#2634)
MASM (Microsoft Macro Assembler) needs to be enabled to successfully compile .asm files on Windows. Without enabling this language automatically in runtime_lib.cmake, Windows cmake projects using WAMR get hard-to-diagnose linker errors about missing symbols as the assembly file is not compiled at all.
This commit is contained in:
@ -165,7 +165,11 @@ file (GLOB header
|
||||
)
|
||||
LIST (APPEND RUNTIME_LIB_HEADER_LIST ${header})
|
||||
|
||||
enable_language (ASM)
|
||||
if (WAMR_BUILD_PLATFORM STREQUAL "windows")
|
||||
enable_language (ASM_MASM)
|
||||
else()
|
||||
enable_language (ASM)
|
||||
endif()
|
||||
|
||||
include (${SHARED_PLATFORM_CONFIG})
|
||||
include (${SHARED_DIR}/mem-alloc/mem_alloc.cmake)
|
||||
|
||||
Reference in New Issue
Block a user