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
eb945dfd
Commit
eb945dfd
authored
3 years ago
by
Yifan Zhao
Browse files
Options
Downloads
Patches
Plain Diff
Build in Release by default
parent
d3294cde
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hpvm/scripts/hpvm_installer.py
+6
-19
6 additions, 19 deletions
hpvm/scripts/hpvm_installer.py
with
6 additions
and
19 deletions
hpvm/scripts/hpvm_installer.py
+
6
−
19
View file @
eb945dfd
...
...
@@ -4,6 +4,7 @@ from os import chdir, environ, makedirs
from
pathlib
import
Path
from
subprocess
import
CalledProcessError
,
check_call
from
typing
import
List
,
Union
from
multiprocessing
import
cpu_count
VERSION
=
"
9.0.0
"
URL
=
"
http://releases.llvm.org
"
...
...
@@ -52,8 +53,8 @@ def parse_args(args=None):
"
-j
"
,
"
--parallel
"
,
type
=
int
,
default
=
2
,
help
=
"
How many threads to build with. This argument is relayed on to
'
make
'
. Default:
2
"
,
default
=
cpu_count
()
,
help
=
"
How many threads to build with. This argument is relayed on to
'
make
'
. Default:
cpu_count()
"
,
)
parser
.
add_argument
(
"
-b
"
,
...
...
@@ -83,15 +84,11 @@ def parse_args(args=None):
"
-r
"
,
"
--run-tests
"
,
action
=
"
store_true
"
,
help
=
"
Build and run test cases
"
)
parser
.
add_argument
(
"
cmake_args
"
,
type
=
str
,
nargs
=
"
*
"
,
default
=
""
,
help
=
"
Argument to relay on to CMake. Separate with space and do not include the dashes.
"
"
Example: DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=install
"
,
"
-d
"
,
"
--build-debug
"
,
action
=
"
store_true
"
,
help
=
"
Build debug instead of release
"
)
args
=
parser
.
parse_args
(
args
)
args
.
cmake_args
=
[
f
"
-
{
arg
}
"
for
arg
in
args
.
cmake_args
]
build_ty
=
"
Debug
"
if
args
.
build_debug
else
"
Release
"
args
.
cmake_args
=
[
f
"
-DCMAKE_BUILD_TYPE=
{
build_ty
}
"
]
return
args
...
...
@@ -139,16 +136,6 @@ def prompt_args():
args
.
targets
=
input_with_check
(
"
Build target:
"
,
parse_targets
,
"
Input shouldn
'
t contain space
"
)
print
(
"""
Additional arguments to CMake? Split by space and no dashes.
Example:
"
DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=install
"
.
Arguments:
"""
)
args
.
cmake_args
=
input
()
if
args
.
cmake_args
.
strip
()
!=
""
:
args
.
cmake_args
=
[
f
"
-
{
arg
}
"
for
arg
in
args
.
cmake_args
.
split
(
"
"
)]
args
.
run_tests
=
input_with_check
(
"
Build and run tests? [y/n]:
"
,
parse_yn
,
"
Please enter y or n
"
)
...
...
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