[all-commits] [llvm/llvm-project] 4a4f0f: Fixed cmake config in case of LLVM_ENABLE_RPMALLOC...
Dmitry Vasilyev via All-commits
all-commits at lists.llvm.org
Fri May 16 13:41:46 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4a4f0ffb5ba62428559f9d8d6f788505d350834f
https://github.com/llvm/llvm-project/commit/4a4f0ffb5ba62428559f9d8d6f788505d350834f
Author: Dmitry Vasilyev <dvassiliev at accesssoftek.com>
Date: 2025-05-17 (Sat, 17 May 2025)
Changed paths:
M llvm/lib/Support/CMakeLists.txt
Log Message:
-----------
Fixed cmake config in case of LLVM_ENABLE_RPMALLOC=ON and non MSVC compiler (#139770)
This patch fixes the following error in case of LLVM_ENABLE_RPMALLOC=ON
and clang or other non MSVC compiler:
```
CMake Error at cmake/modules/AddLLVM.cmake:644 (add_library):
Target "LLVMSupport" links to item " -INCLUDE:malloc" which has leading or
trailing whitespace. This is now an error according to policy CMP0004.
Call Stack (most recent call first):
cmake/modules/AddLLVM.cmake:944 (llvm_add_library)
cmake/modules/AddLLVM.cmake:917 (add_llvm_library)
lib/Support/CMakeLists.txt:139 (add_llvm_component_library)
```
Note `delayload_flags` is empty before this line is case of non MSVC
compiler.
The behavior is the same with CMake 3.25.3 and 4.0.2.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list