Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
hpvm-release
Commits
d2049c20
Commit
d2049c20
authored
5 years ago
by
Akash Kothari
Browse files
Options
Downloads
Patches
Plain Diff
Adding LLVM src downloading script
parent
424db5b7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/tools/hpvm/llvm_installer/llvm_installer.sh
+52
-0
52 additions, 0 deletions
llvm/tools/hpvm/llvm_installer/llvm_installer.sh
with
52 additions
and
0 deletions
llvm/tools/hpvm/llvm_installer/llvm_installer.sh
0 → 100644
+
52
−
0
View file @
d2049c20
#!/bin/bash
VERSION
=
"9.0.0"
URL
=
"http://releases.llvm.org"
SUFFIX
=
".tar.xz"
LLVM_SRC
=
"llvm-
$VERSION
.src"
WGET
=
wget
CURRENT_DIR
=
`
pwd
`
INSTALL_DIR
=
`
pwd
`
/install
BUILD_DIR
=
$CURRENT_DIR
/
$LLVM_SRC
/build
NUM_THREADS
=
12
if
[
-d
$LLVM_SRC
]
;
then
echo
Found
$LLVM_SRC
!
else
echo
$WGET
$URL
/
$VERSION
/
$LLVM_SRC$SUFFIX
$WGET
$URL
/
$VERSION
/
$LLVM_SRC$SUFFIX
tar
xf
$LLVM_SRC$SUFFIX
fi
cd
$CURRENT_DIR
if
[
-d
$BUILD_DIR
]
;
then
cd
$BUILD_DIR
echo
Found
$BUILD_DIR
.
else
mkdir
-p
$BUILD_DIR
mkdir
-p
$INSTALL_DIR
cd
$BUILD_DIR
cmake
-DCMAKE_BUILD_TYPE
=
MinSizeRel
-DCMAKE_C_COMPILER
=
gcc
-DCMAKE_CXX_COMPILER
=
g++
-DCMAKE_INSTALL_PREFIX
=
$INSTALL_DIR
-DLLVM_OPTIMIZED_TABLEGEN
=
On ..
fi
make
-j
$NUM_THREADS
make
install
if
[
-x
$INSTALL_DIR
/bin/clang
]
;
then
true
else
echo
LLVM not installed properly.
exit
0
fi
cd
$CURRENT_DIR
echo
"Add
$INSTALL_DIR
/bin to PATH variable."
export
PATH
=
"
$INSTALL_DIR
/bin:
$PATH
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment