Skip to content

Commit

Permalink
[C++ RPC] Fix C++ RPC build problem on Linux (apache#5671)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenGene authored and trevor-m committed Jun 18, 2020
1 parent 7233732 commit 83e80c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/cpp_rpc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ all: tvm_rpc
# Build rule for all in one TVM package library
tvm_rpc: *.cc
@mkdir -p $(@D)
$(CXX) $(PKG_CFLAGS) -o $@ $(filter %.cc %.o %.a, $^) $(PKG_LDFLAGS)
$(CXX) $(PKG_CFLAGS) -o $@ $(filter-out win32_process.cc, $(filter %.cc %.o %.a, $^)) $(PKG_LDFLAGS)

clean:
-rm -f tvm_rpc
2 changes: 1 addition & 1 deletion apps/cpp_rpc/rpc_env.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace runtime {
RPCEnv::RPCEnv() {
#ifndef _WIN32
char cwd[PATH_MAX];
if (char* rc = getcwd(cwd, sizeof(cwd))) {
if (getcwd(cwd, sizeof(cwd))) {
base_ = std::string(cwd) + "/rpc";
} else {
base_ = "./rpc";
Expand Down

0 comments on commit 83e80c5

Please sign in to comment.