Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
d6b7b62d
Commit
d6b7b62d
authored
Aug 12, 2019
by
Logan Weber
Committed by
Tianqi Chen
Aug 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert compile_cmd kwarg name change (#3746)
* Revert compile_cmd kwarg name change * Fix binutil tests
parent
2b975f4a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
python/tvm/contrib/cc.py
+3
-3
tests/python/contrib/test_binutil.py
+1
-1
No files found.
python/tvm/contrib/cc.py
View file @
d6b7b62d
...
...
@@ -27,7 +27,7 @@ from .util import tempdir
def
create_shared
(
output
,
objects
,
options
=
None
,
c
ompile_cmd
=
"g++"
):
c
c
=
"g++"
):
"""Create shared library.
Parameters
...
...
@@ -41,11 +41,11 @@ def create_shared(output,
options : List[str]
The list of additional options string.
c
ompile_cmd
: Optional[str]
c
c
: Optional[str]
The compiler command.
"""
if
sys
.
platform
==
"darwin"
or
sys
.
platform
.
startswith
(
"linux"
):
_linux_compile
(
output
,
objects
,
options
,
c
ompile_cmd
)
_linux_compile
(
output
,
objects
,
options
,
c
c
)
elif
sys
.
platform
==
"win32"
:
_windows_shared
(
output
,
objects
,
options
)
else
:
...
...
tests/python/contrib/test_binutil.py
View file @
d6b7b62d
...
...
@@ -43,7 +43,7 @@ def make_binary():
with
open
(
tmp_source
,
"w"
)
as
f
:
f
.
write
(
prog
)
cc
.
create_shared
(
tmp_obj
,
tmp_source
,
[],
c
ompile_cmd
=
"{}gcc"
.
format
(
TOOLCHAIN_PREFIX
))
c
c
=
"{}gcc"
.
format
(
TOOLCHAIN_PREFIX
))
prog_bin
=
bytearray
(
open
(
tmp_obj
,
"rb"
)
.
read
())
return
prog_bin
...
...
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