Commit fb2680fe authored by Chuck Atkins's avatar Chuck Atkins
Browse files

Bump llvm to 5.0.1

parent 98281613
if (CMAKE_CXX_COMPILER_ID MATCHES "Intel")
superbuild_append_flags(
cxx_flags "-diag-disable=177,597,873,1098,1292,2026,3373"
cxx_flags "-diag-disable=177,597,873,1098,1292,2026,3373,3884"
PROJECT_ONLY)
endif ()
......@@ -9,12 +9,16 @@ superbuild_add_project(llvm
DEPENDS python cxx11
CMAKE_ARGS
-DCMAKE_BUILD_TYPE=Release
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
-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})
superbuild_apply_patch(${project} fix-static-assert
"Fix the intel compiler being too sensitive about static asserts")
set(llvm_dir "<INSTALL_DIR>")
--- llvm-5.0.1.src/lib/IR/Attributes.cpp.orig 2018-02-14 16:39:55.983961116 -0500
+++ llvm-5.0.1.src/lib/IR/Attributes.cpp 2018-02-14 16:39:15.111672713 -0500
@@ -795,7 +795,7 @@
static constexpr unsigned attrIdxToArrayIdx(unsigned Index) {
// MSVC warns about '~0U + 1' wrapping around when this is called on
// FunctionIndex, so cast to int first.
- return static_cast<int>(Index) + 1;
+ return static_cast<unsigned>(static_cast<int>(Index)) + 1;
}
AttributeListImpl::AttributeListImpl(LLVMContext &C,
superbuild_set_revision(llvm
URL "http://www.paraview.org/files/dependencies/llvm-4.0.0.src.tar.xz"
URL_MD5 ea9139a604be702454f6acf160b4f3a2)
URL "http://www.paraview.org/files/dependencies/llvm-5.0.1.src.tar.xz"
URL_MD5 3a4ec6dcbc71579eeaec7cb157fe2168)
superbuild_set_revision(glproto
URL "http://www.paraview.org/files/dependencies/glproto-1.4.17.tar.bz2"
......
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