OSDN Git Service

Fix how LLVMOPTIONALCOMPONENTS is passed to llvm-build
authorReid Kleckner <rnk@google.com>
Tue, 12 Jun 2018 20:53:46 +0000 (20:53 +0000)
committerReid Kleckner <rnk@google.com>
Tue, 12 Jun 2018 20:53:46 +0000 (20:53 +0000)
Patch by Force.Charlie-I

If LLVM_USE_INTEL_JITEVENTS and LLVM_USE_OPROFILE  not set,
"${LLVMOPTIONALCOMPONENTS}" is empty, but
**--enable-optional-components** need arg, Cause
**--write-library-table** to be skipped parsed.

Differential Revision: https://reviews.llvm.org/D47982

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334543 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index a208587..40fcfeb 100644 (file)
@@ -640,6 +640,7 @@ set(LLVMBUILDCMAKEFRAG
   "${LLVM_BINARY_DIR}/LLVMBuild.cmake")
 
 # Create the list of optional components that are enabled
+set(LLVM_USE_INTEL_JITEVENTS " ")
 if (LLVM_USE_INTEL_JITEVENTS)
   set(LLVMOPTIONALCOMPONENTS IntelJITEvents)
 endif (LLVM_USE_INTEL_JITEVENTS)