Commit 44b4e61a authored by Ben Boeckel's avatar Ben Boeckel
Browse files

llvm: port

parent 9c263108
Pipeline #23621 passed with stage
if(NOT python_version_minimum OR python_version_minimum LESS 2.7)
set(python_version_minimum 2.7 CACHE INTERNAL "Minimum python version" FORCE)
endif()
# LLVM requires C++11 but CMake didn't gain enough knowledge on how to
# do that properly with the Intel compiler until 3.6
if(CMAKE_CXX_COMPILER_ID MATCHES "Intel" AND
CMAKE_VERSION VERSION_LESS 3.6)
message(FATAL_ERROR "Building LLVM with the Intel compiler requires CMake >= 3.6")
endif()
add_external_project_or_use_system(llvm
DEPENDS python
CMAKE_ARGS
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
-DLLVM_BUILD_LLVM_DYLIB=ON
-DLLVM_ENABLE_RTTI=ON
-DLLVM_INSTALL_UTILS=ON
-DLLVM_TARGETS_TO_BUILD:STRING=X86 # when using this on PowerPC, this will
# need to be updated.
)
# This has to go in the CXX_FLAGS explicitly to ensure it's correctly
# propogated to the output of llvm-config. Using the CMake property
# for CXX_STANDARD=11 is insufficient.
append_flags(CMAKE_CXX_FLAGS "${CMAKE_CXX11_STANDARD_COMPILE_OPTION}" PROJECT_ONLY)
if(NOT USE_SYSTEM_llvm)
set(LLVM_DIR "${install_location}" CACHE INTERNAL "")
endif()
superbuild_add_project(llvm
CAN_USE_SYSTEM
DEPENDS zlib python
CMAKE_ARGS
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
-DLLVM_BUILD_LLVM_DYLIB=ON
-DLLVM_ENABLE_RTTI=ON
-DLLVM_INSTALL_UTILS=ON
-DLLVM_TARGETS_TO_BUILD:STRING=X86 # FIXME: When using this on PowerPC,
# this will need to be updated.
-DPYTHON_EXECUTABLE=${superbuild_python_executable})
if (superbuild_build_phase)
set(llvm_dir "<INSTALL_DIR>")
endif ()
......@@ -2,6 +2,10 @@ superbuild_set_revision(qhull
GIT_REPOSITORY "https://github.com/mathstuf/qhull.git"
GIT_TAG origin/next)
superbuild_set_revision(llvm
URL "http://paraview.org/files/dependencies/llvm-3.8.1.src.tar.xz"
URL_MD5 538467e6028bbc9259b1e6e015d25845)
add_revision(silo
URL "http://paraview.org/files/dependencies/silo-4.9.1-bsd.tar.gz"
URL_MD5 465d2a0a8958b088cde83fb2a5a7eeef)
......@@ -32,10 +36,6 @@ add_revision(osmesa
URL "http://paraview.org/files/dependencies/mesa-12.0.1.tar.xz"
URL_MD5 972fd5ad5a63aeabf173fb9adefc6522)
add_revision(llvm
URL "http://paraview.org/files/dependencies/llvm-3.8.1.src.tar.xz"
URL_MD5 538467e6028bbc9259b1e6e015d25845)
# ----------------------------------------------------------------------------
# You choose to download ParaView source form GIT or other URL/FILE tarball
option(ParaView_FROM_GIT "If enabled then the repository is fetched from git" ON)
......
Supports Markdown
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