Skip to content

Commit

Permalink
Fix issue of conflicting target names in Windows (bytecodealliance#702)
Browse files Browse the repository at this point in the history
The output file name of the iwasm library should be unique, otherwise some of the output files from two different targets (iwasm and libiwasm) will overwrite each other and produce corrupted output files. Currently Windows debugging is broken due to the corrupted pdb files, and this PR fixes the issue.
  • Loading branch information
mbbill authored Aug 19, 2021
1 parent ef14ace commit 4735467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion product-mini/platforms/windows/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ add_library (libiwasm SHARED ${WAMR_RUNTIME_LIB_SOURCE})

install (TARGETS libiwasm DESTINATION lib)

set_target_properties (libiwasm PROPERTIES OUTPUT_NAME iwasm)
set_target_properties (libiwasm PROPERTIES OUTPUT_NAME libiwasm)

target_link_libraries (libiwasm ${LLVM_AVAILABLE_LIBS} ${UV_A_LIBS})

0 comments on commit 4735467

Please sign in to comment.