Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
1d45c18b
Commit
1d45c18b
authored
Nov 02, 2017
by
Jaikrishnan Menon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: Add hash verification for fetched LLVM tarballs
parent
f385333c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
external_llvm.cmake
cmake/external_llvm.cmake
+7
-0
No files found.
cmake/external_llvm.cmake
View file @
1d45c18b
...
@@ -17,10 +17,15 @@ if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND
...
@@ -17,10 +17,15 @@ if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND
(
NOT
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Windows"
))
(
NOT
${
CMAKE_SYSTEM_NAME
}
MATCHES
"Windows"
))
message
(
STATUS
"Fetching LLVM from llvm.org"
)
message
(
STATUS
"Fetching LLVM from llvm.org"
)
set
(
LLVM_RELEASE_URL http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu16.04.tar.xz
)
set
(
LLVM_RELEASE_URL http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu16.04.tar.xz
)
set
(
LLVM_SHA1_HASH 9cb81c92aa4d3f9707a9b8413c4d24b8dee90c59
)
# Override default LLVM binaries
# Override default LLVM binaries
if
(
PREBUILT_LLVM
)
if
(
PREBUILT_LLVM
)
if
(
NOT DEFINED PREBUILT_LLVM_HASH
)
message
(
FATAL_ERROR
"SHA1 hash of prebuilt llvm tarball not provided in PREBUILT_LLVM_HASH."
)
endif
()
set
(
LLVM_RELEASE_URL
${
PREBUILT_LLVM
}
)
set
(
LLVM_RELEASE_URL
${
PREBUILT_LLVM
}
)
set
(
LLVM_SHA1_HASH
${
PREBUILT_LLVM_HASH
}
)
endif
()
endif
()
# The 'BUILD_BYPRODUCTS' argument was introduced in CMake 3.2.
# The 'BUILD_BYPRODUCTS' argument was introduced in CMake 3.2.
...
@@ -28,6 +33,7 @@ if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND
...
@@ -28,6 +33,7 @@ if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND
ExternalProject_Add
(
ExternalProject_Add
(
ext_llvm
ext_llvm
URL
${
LLVM_RELEASE_URL
}
URL
${
LLVM_RELEASE_URL
}
URL_HASH SHA1=
${
LLVM_SHA1_HASH
}
CONFIGURE_COMMAND
""
CONFIGURE_COMMAND
""
BUILD_COMMAND
""
BUILD_COMMAND
""
INSTALL_COMMAND
""
INSTALL_COMMAND
""
...
@@ -37,6 +43,7 @@ if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND
...
@@ -37,6 +43,7 @@ if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND
ExternalProject_Add
(
ExternalProject_Add
(
ext_llvm
ext_llvm
URL
${
LLVM_RELEASE_URL
}
URL
${
LLVM_RELEASE_URL
}
URL_HASH SHA1=
${
LLVM_SHA1_HASH
}
CONFIGURE_COMMAND
""
CONFIGURE_COMMAND
""
BUILD_COMMAND
""
BUILD_COMMAND
""
INSTALL_COMMAND
""
INSTALL_COMMAND
""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment