Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
389bc006
Commit
389bc006
authored
Aug 27, 2017
by
chenzhangyi01
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compile issues
Change-Id: Ie970f9499896cb9268cb6875cb7d44031bcd63d9
parent
92e9f4d8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
Makefile
Makefile
+2
-2
log.h
src/brpc/log.h
+20
-0
No files found.
Makefile
View file @
389bc006
...
...
@@ -223,9 +223,9 @@ clean:clean_debug
clean_debug
:
@
rm
-rf
libbrpc.dbg.a
$(DEBUG_OBJS)
protoc-gen-mcpack
:
src/mcpack2pb/generator.o libbrpc.a
protoc-gen-mcpack
:
src/idl_options.pb.cc
src/mcpack2pb/generator.o libbrpc.a
@
echo
"Linking
$@
"
@
$(CXX)
-o
$@
$(LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
@
$(CXX)
-o
$@
$(
HDRPATHS)
$(
LIBPATHS)
-Xlinker
"-("
$^
-Wl
,-Bstatic
$(STATIC_LINKINGS)
-Wl
,-Bdynamic
-Xlinker
"-)"
$(DYNAMIC_LINKINGS)
# force generation of pb headers before compiling to avoid fail-to-import issues in compiling pb.cc
libbrpc.a
:
$(BRPC_PROTOS:.proto=.pb.h) $(OBJS)
...
...
src/brpc/log.h
0 → 100644
View file @
389bc006
// Baidu RPC - A framework to host and access services throughout Baidu.
// Copyright (c) 2014 Baidu.com, Inc. All Rights Reserved
// Author: The baidu-rpc authors (pbrpc@baidu.com)
// Date: Sun Sep 14 22:53:17 CST 2014
#ifndef BAIDU_RPC_LOG_H
#define BAIDU_RPC_LOG_H
#include <bthread/errno.h>
#include <inttypes.h> // PRId64 PRIu64
#define RPC_VLOG_LEVEL 99
#define RPC_VLOG_IS_ON VLOG_IS_ON(RPC_VLOG_LEVEL)
#define RPC_VLOG VLOG(RPC_VLOG_LEVEL)
#define RPC_VPLOG VPLOG(RPC_VLOG_LEVEL)
#define RPC_VLOG_IF(cond) VLOG_IF(RPC_VLOG_LEVEL, (cond))
#define RPC_VPLOG_IF(cond) VPLOG_IF(RPC_VLOG_LEVEL, (cond))
#endif // BAIDU_RPC_LOG_H
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