Skip to content

Commit 9537a4b

Browse files
committed
Updated to use list(APPEND delayload_flags ...).
1 parent ab24e01 commit 9537a4b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Support/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ if(LLVM_INTEGRATED_CRT_ALLOC)
112112
if((LLVM_INTEGRATED_CRT_ALLOC MATCHES "rpmalloc$") OR LLVM_ENABLE_RPMALLOC)
113113
add_compile_definitions(ENABLE_OVERRIDE ENABLE_PRELOAD)
114114
set(ALLOCATOR_FILES "${LLVM_INTEGRATED_CRT_ALLOC}/rpmalloc/rpmalloc.c")
115-
set(delayload_flags "${delayload_flags} ${WL}-INCLUDE:malloc")
116-
string(STRIP ${delayload_flags} delayload_flags)
115+
list(APPEND delayload_flags "${WL}-INCLUDE:malloc")
117116
elseif(LLVM_INTEGRATED_CRT_ALLOC MATCHES "snmalloc$")
118117
set(ALLOCATOR_FILES "${LLVM_INTEGRATED_CRT_ALLOC}/src/snmalloc/override/new.cc")
119118
set(system_libs ${system_libs} "mincore.lib" "${WL}-INCLUDE:malloc")

0 commit comments

Comments
 (0)