[llvm] r280002 - [CMake] Builtins build needs LLVM_*_OUTPUT_INTDIR variables

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 29 13:18:53 PDT 2016


Author: cbieneman
Date: Mon Aug 29 15:18:52 2016
New Revision: 280002

URL: http://llvm.org/viewvc/llvm-project?rev=280002&view=rev
Log:
[CMake] Builtins build needs LLVM_*_OUTPUT_INTDIR variables

This allows the builtins archives to build into the correct subdirectory under the binary dir. Addresses the issue discussed in D24001.

Modified:
    llvm/trunk/runtimes/CMakeLists.txt

Modified: llvm/trunk/runtimes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtimes/CMakeLists.txt?rev=280002&r1=280001&r2=280002&view=diff
==============================================================================
--- llvm/trunk/runtimes/CMakeLists.txt (original)
+++ llvm/trunk/runtimes/CMakeLists.txt Mon Aug 29 15:18:52 2016
@@ -123,6 +123,8 @@ else() # if this is included from LLVM's
   if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt)
     llvm_ExternalProject_Add(builtins
                              ${CMAKE_CURRENT_SOURCE_DIR}/compiler-rt/lib/builtins
+                             CMAKE_ARGS -DLLVM_LIBRARY_OUTPUT_INTDIR=${LLVM_LIBRARY_DIR}
+                                        -DLLVM_RUNTIME_OUTPUT_INTDIR=${LLVM_TOOLS_BINARY_DIR}
                              PASSTHROUGH_PREFIXES COMPILER_RT
                              USE_TOOLCHAIN)
     set(deps builtins)




More information about the llvm-commits mailing list