[PATCH] D87609: [Suport][cmake] Change LLVM_INTEGRATED_CRT_ALLOC to a path instead of a boolean

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 06:57:23 PDT 2020


aganea created this revision.
aganea added reviewers: russell.gallop, hans.
Herald added subscribers: llvm-commits, mgorny.
Herald added a project: LLVM.
aganea requested review of this revision.

Fix issue, as pointed out by Russell: https://reviews.llvm.org/D71786#2270702


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87609

Files:
  llvm/CMakeLists.txt


Index: llvm/CMakeLists.txt
===================================================================
--- llvm/CMakeLists.txt
+++ llvm/CMakeLists.txt
@@ -567,7 +567,7 @@
 option (LLVM_VERSION_PRINTER_SHOW_HOST_TARGET_INFO
   "Show target and host info when tools are invoked with --version." ON)
 
-option(LLVM_INTEGRATED_CRT_ALLOC "Replace the Windows CRT allocator with any of {rpmalloc|mimalloc|snmalloc}. Only works with /MT enabled." OFF)
+set(LLVM_INTEGRATED_CRT_ALLOC "" CACHE PATH "Replace the Windows CRT allocator with any of {rpmalloc|mimalloc|snmalloc}. Only works with /MT enabled.")
 if(LLVM_INTEGRATED_CRT_ALLOC)
   if(NOT WIN32)
     message(FATAL_ERROR "LLVM_INTEGRATED_CRT_ALLOC is only supported on Windows.")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87609.291560.patch
Type: text/x-patch
Size: 722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200914/c07365d9/attachment.bin>


More information about the llvm-commits mailing list