[llvm] Fixed cmake config in case of LLVM_ENABLE_RPMALLOC=ON and non MSVC compiler (PR #139770)

Mészáros Gergely via llvm-commits llvm-commits at lists.llvm.org
Tue May 13 23:50:11 PDT 2025


================
@@ -113,6 +113,7 @@ if(LLVM_INTEGRATED_CRT_ALLOC)
     add_compile_definitions(ENABLE_OVERRIDE ENABLE_PRELOAD)
     set(ALLOCATOR_FILES "${LLVM_INTEGRATED_CRT_ALLOC}/rpmalloc/rpmalloc.c")
     set(delayload_flags "${delayload_flags} ${WL}-INCLUDE:malloc")
+    string(STRIP ${delayload_flags} delayload_flags)
----------------
Maetveis wrote:

```suggestion
    set(delayload_flags "${delayload_flags}" "${WL}-INCLUDE:malloc")
```
or alternatively `list(APPEND delayload_flags "${WL}-INCLUDE:malloc")`. (I'd prefer the latter in new code, but the former is consistent with the existing code in this region).


https://github.com/llvm/llvm-project/pull/139770


More information about the llvm-commits mailing list