llvm.org GIT mirror llvm / c1873bf
Revert "Reorder FindPythonInterp so that config-ix can use PYTHON_EXECUTABLE" This reverts commit rL346367 due to test error in compiler-rt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346383 91177308-0d34-0410-b5e6-96231b3b80d8 Nathan Lanza 10 months ago
1 changed file(s) with 19 addition(s) and 19 deletion(s). Raw diff Collapse all Expand all
575575 set(LLVM_ENABLE_PER_TARGET_RUNTIME_DIR OFF CACHE BOOL
576576 "Enable per-target runtimes directory")
577577
578 # All options referred to from HandleLLVMOptions have to be specified
579 # BEFORE this include, otherwise options will not be correctly set on
580 # first cmake run
581 include(config-ix)
582
583 string(REPLACE "Native" ${LLVM_NATIVE_ARCH}
584 LLVM_TARGETS_TO_BUILD "${LLVM_TARGETS_TO_BUILD}")
585 list(REMOVE_DUPLICATES LLVM_TARGETS_TO_BUILD)
586
587 # By default, we target the host, but this can be overridden at CMake
588 # invocation time.
589 set(LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_HOST_TRIPLE}" CACHE STRING
590 "Default target for which LLVM will generate code." )
591 set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}")
592 message(STATUS "LLVM host triple: ${LLVM_HOST_TRIPLE}")
593 message(STATUS "LLVM default target triple: ${LLVM_DEFAULT_TARGET_TRIPLE}")
594
595 include(HandleLLVMOptions)
596
578597 # Verify that we can find a Python 2 interpreter. Python 3 is unsupported.
579598 # FIXME: We should support systems with only Python 3, but that requires work
580599 # on LLDB.
590609 if( ${PYTHON_VERSION_STRING} VERSION_LESS 2.7 )
591610 message(FATAL_ERROR "Python 2.7 or newer is required")
592611 endif()
593
594 # All options referred to from HandleLLVMOptions have to be specified
595 # BEFORE this include, otherwise options will not be correctly set on
596 # first cmake run
597 include(config-ix)
598
599 string(REPLACE "Native" ${LLVM_NATIVE_ARCH}
600 LLVM_TARGETS_TO_BUILD "${LLVM_TARGETS_TO_BUILD}")
601 list(REMOVE_DUPLICATES LLVM_TARGETS_TO_BUILD)
602
603 # By default, we target the host, but this can be overridden at CMake
604 # invocation time.
605 set(LLVM_DEFAULT_TARGET_TRIPLE "${LLVM_HOST_TRIPLE}" CACHE STRING
606 "Default target for which LLVM will generate code." )
607 set(TARGET_TRIPLE "${LLVM_DEFAULT_TARGET_TRIPLE}")
608 message(STATUS "LLVM host triple: ${LLVM_HOST_TRIPLE}")
609 message(STATUS "LLVM default target triple: ${LLVM_DEFAULT_TARGET_TRIPLE}")
610
611 include(HandleLLVMOptions)
612612
613613 ######
614614 # LLVMBuild Integration