mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Fix Windows x86 compilation after a6a37a2fcd2a8048a75bd0d8280497ed89d73224
This commit is contained in:
parent
56b8c35591
commit
38b940febb
@ -39,6 +39,7 @@ function(dynlib_add_module NAME)
|
||||
|
||||
add_dependencies(DynamicLibraryTests ${NAME})
|
||||
|
||||
if(LLVM_INTEGRATED_CRT_ALLOC)
|
||||
# We need to link in the Support lib for the Memory allocator override,
|
||||
# otherwise the DynamicLibrary.Shutdown test will fail, because it would
|
||||
# allocate memory with the CRT allocator, and release it with our custom
|
||||
@ -46,6 +47,7 @@ function(dynlib_add_module NAME)
|
||||
# /INCLUDE:malloc is there to force searching into LLVMSupport before libucrt
|
||||
llvm_map_components_to_libnames(llvm_libs Support)
|
||||
target_link_libraries(${NAME} ${llvm_libs} "-INCLUDE:malloc")
|
||||
endif()
|
||||
|
||||
endfunction(dynlib_add_module)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user