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
eecd8cab
Unverified
Commit
eecd8cab
authored
Jan 07, 2020
by
Tianqi Chen
Committed by
GitHub
Jan 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve constexpr related link error in debug mode (#4641)
parent
4e5c6c7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/runtime/micro/tcl_socket.cc
+4
-3
No files found.
src/runtime/micro/tcl_socket.cc
View file @
eecd8cab
...
...
@@ -42,7 +42,8 @@ void TclSocket::Connect(tvm::common::SockAddr addr) {
}
void
TclSocket
::
SendCommand
()
{
cmd_builder_
<<
kCommandTerminateToken
;
const
char
terminate_token
=
kCommandTerminateToken
;
cmd_builder_
<<
terminate_token
;
std
::
string
full_cmd
=
cmd_builder_
.
str
();
CHECK
(
tcp_socket_
.
Send
(
full_cmd
.
data
(),
full_cmd
.
length
())
!=
-
1
)
<<
"failed to send command"
;
...
...
@@ -63,9 +64,9 @@ void TclSocket::SendCommand() {
last_read
=
reply_buf_
[
bytes_read
-
1
];
}
while
(
bytes_read
==
kReplyBufSize
-
1
);
CHECK
(
bytes_read
!=
-
1
)
<<
"failed to read command reply"
;
}
while
(
last_read
!=
kCommandTerminateT
oken
);
}
while
(
last_read
!=
terminate_t
oken
);
last_reply_
=
reply_builder_
.
str
();
CHECK_EQ
(
last_reply_
[
last_reply_
.
length
()
-
1
],
kCommandTerminateT
oken
)
CHECK_EQ
(
last_reply_
[
last_reply_
.
length
()
-
1
],
terminate_t
oken
)
<<
"missing command terminator"
;
}
...
...
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