build/Make & CMake: Pass the appropriate --native-target and --enable-targets
[oota-llvm.git] / CMakeLists.txt
index 77cd5fa305fbe464e7c20482cbece7eb17fcb0ca..5d36f5fc1032aefdfe317adf65abb35c6da213f5 100644 (file)
@@ -236,6 +236,8 @@ set(LLVMBUILDCMAKEFRAG
 message(STATUS "Constructing LLVMBuild project information")
 execute_process(
   COMMAND ${PYTHON_EXECUTABLE} ${LLVMBUILDTOOL}
+            --native-target "${LLVM_NATIVE_ARCH}"
+            --enable-targets "${LLVM_TARGETS_TO_BUILD}"
             --write-library-table ${LLVMCONFIGLIBRARYDEPENDENCIESINC}
             --write-cmake-fragment ${LLVMBUILDCMAKEFRAG}
             ERROR_VARIABLE LLVMBUILDOUTPUT