Commit e97d659c authored by Cory Quammen's avatar Cory Quammen Committed by Kitware Robot
Browse files

Merge topic 'release-llvm-target-architecture' into release


 llvm: set targets to build string based on system processor
Acked-by: Kitware Robot's avatarKitware Robot <>
Merge-request: !649
parents a7917e0f 637acd2c
Pipeline #147211 failed with stage
in 0 seconds
......@@ -7,6 +7,20 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Intel")
endif ()
# Check the target processor to configure LLVM properly. Possible
# targets are: AArch64, AMDGPU, ARM, BPF, Hexagon, Mips, MSP430,
# NVPTX, PowerPC, Sparc, SystemZ, X86, XCore.
# See
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" cmake_system_processor)
if (cmake_system_processor MATCHES "x.*64")
set(target_architecture "X86")
elseif (cmake_system_processor MATCHES "ppc64")
set(target_architecture "PowerPC")
"Could not configure LLVM for the target system processor '${CMAKE_SYSTEM_PROCESSOR}'.")
DEPENDS python cxx11
......@@ -17,8 +31,7 @@ superbuild_add_project(llvm
-DLLVM_TARGETS_TO_BUILD:STRING=X86 # FIXME: When using this on PowerPC,
# this will need to be updated.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment