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
fdb23393
Commit
fdb23393
authored
Nov 05, 2018
by
wangyao02
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- rename build to bld in doc, make Mac build ok when case sensitive
parent
a6ccc96a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
14 deletions
+14
-14
getting_started.md
docs/cn/getting_started.md
+11
-11
thrift.md
docs/cn/thrift.md
+1
-1
thrift.md
docs/en/thrift.md
+1
-1
linked_list.h
src/butil/containers/linked_list.h
+1
-1
No files found.
docs/cn/getting_started.md
View file @
fdb23393
...
...
@@ -78,7 +78,7 @@ $ sh run_tests.sh
### Compile brpc with cmake
```
shell
mkdir
b
uild
&&
cd
bui
ld
&&
cmake ..
&&
make
mkdir
b
ld
&&
cd
b
ld
&&
cmake ..
&&
make
```
To change compiler to clang, overwrite environment variable CC and CXX to clang and clang++.
...
...
@@ -91,7 +91,7 @@ To enable [thrift support](../en/thrift.md), install thrift first and add `-DWIT
**Run example with cmake**
```
shell
$
cd
example/echo_c++
$
mkdir
b
uild
&&
cd
bui
ld
&&
cmake ..
&&
make
$
mkdir
b
ld
&&
cd
b
ld
&&
cmake ..
&&
make
$
./echo_server &
$
./echo_client
```
...
...
@@ -99,7 +99,7 @@ Examples link brpc statically, if you need to link the shared version, use `cmak
**Run tests**
```
shell
$
mkdir
b
uild
&&
cd
bui
ld
&&
cmake
-DBUILD_UNIT_TESTS
=
ON ..
&&
make
$
mkdir
b
ld
&&
cd
b
ld
&&
cmake
-DBUILD_UNIT_TESTS
=
ON ..
&&
make
$
cd test
$
sh run_tests.sh
```
...
...
@@ -169,7 +169,7 @@ $ sh run_tests.sh
### Compile brpc with cmake
```
shell
mkdir
b
uild
&&
cd
bui
ld
&&
cmake ..
&&
make
mkdir
b
ld
&&
cd
b
ld
&&
cmake ..
&&
make
```
To change compiler to clang, overwrite environment variable CC and CXX to clang and clang++.
...
...
@@ -183,7 +183,7 @@ To enable [thrift support](../en/thrift.md), install thrift first and add `-DWIT
```
shell
$
cd
example/echo_c++
$
mkdir
b
uild
&&
cd
bui
ld
&&
cmake ..
&&
make
$
mkdir
b
ld
&&
cd
b
ld
&&
cmake ..
&&
make
$
./echo_server &
$
./echo_client
```
...
...
@@ -191,7 +191,7 @@ Examples link brpc statically, if you need to link the shared version, use `cmak
**Run tests**
```
shell
$
mkdir
b
uild
&&
cd
bui
ld
&&
cmake
-DBUILD_UNIT_TESTS
=
ON ..
&&
make
$
mkdir
b
ld
&&
cd
b
ld
&&
cmake
-DBUILD_UNIT_TESTS
=
ON ..
&&
make
$
cd test
$
sh run_tests.sh
```
...
...
@@ -242,7 +242,7 @@ $ make
git clone brpc. cd into the repo and run
```
shell
mkdir
b
uild
&&
cd
bui
ld
&&
cmake
-DCMAKE_INCLUDE_PATH
=
"/path/to/dep1/include;/path/to/dep2/include"
-DCMAKE_LIBRARY_PATH
=
"/path/to/dep1/lib;/path/to/dep2/lib"
..
&&
make
mkdir
b
ld
&&
cd
b
ld
&&
cmake
-DCMAKE_INCLUDE_PATH
=
"/path/to/dep1/include;/path/to/dep2/include"
-DCMAKE_LIBRARY_PATH
=
"/path/to/dep1/lib;/path/to/dep2/lib"
..
&&
make
```
To change compiler to clang, overwrite environment variable CC and CXX to clang and clang++.
...
...
@@ -276,7 +276,7 @@ brew install gperftools
If you need to run tests, install and compile googletest (which is not compiled yet):
```
shell
git clone https://github.com/google/googletest
&&
cd
googletest/googletest
&&
mkdir
b
uild
&&
cd
bui
ld
&&
cmake ..
&&
make
&&
sudo mv
libgtest
*
/usr/lib/
&&
cd
-
git clone https://github.com/google/googletest
&&
cd
googletest/googletest
&&
mkdir
b
ld
&&
cd
b
ld
&&
cmake ..
&&
make
&&
sudo mv
libgtest
*
/usr/lib/
&&
cd
-
```
### Compile brpc with config_brpc.sh
...
...
@@ -311,7 +311,7 @@ $ sh run_tests.sh
### Compile brpc with cmake
```
shell
mkdir
b
uild
&&
cd
bui
ld
&&
cmake ..
&&
make
mkdir
b
ld
&&
cd
b
ld
&&
cmake ..
&&
make
```
To not link debugging symbols, use
`cmake -DWITH_DEBUG_SYMBOLS=OFF ..`
and compiled binaries will be much smaller.
...
...
@@ -323,7 +323,7 @@ To enable [thrift support](../en/thrift.md), install thrift first and add `-DWIT
**Run example with cmake**
```
shell
$
cd
example/echo_c++
$
mkdir
b
uild
&&
cd
bui
ld
&&
cmake ..
&&
make
$
mkdir
b
ld
&&
cd
b
ld
&&
cmake ..
&&
make
$
./echo_server &
$
./echo_client
```
...
...
@@ -331,7 +331,7 @@ Examples link brpc statically, if you need to link the shared version, use `cmak
**Run tests**
```
shell
$
mkdir
b
uild
&&
cd
bui
ld
&&
cmake
-DBUILD_UNIT_TESTS
=
ON ..
&&
make
$
mkdir
b
ld
&&
cd
b
ld
&&
cmake
-DBUILD_UNIT_TESTS
=
ON ..
&&
make
$
cd test
$
sh run_tests.sh
```
...
...
docs/cn/thrift.md
View file @
fdb23393
...
...
@@ -33,7 +33,7 @@ sh config_brpc.sh --headers=/usr/include --libs=/usr/lib --with-thrift
# Fedora/CentOS
sh config_brpc.sh
--headers
=
/usr/include
--libs
=
/usr/lib64
--with-thrift
# Or use cmake
mkdir
b
uild
&&
cd
bui
ld
&&
cmake ../
-DWITH_THRIFT
=
1
mkdir
b
ld
&&
cd
b
ld
&&
cmake ../
-DWITH_THRIFT
=
1
```
更多编译选项请阅读
[
Getting Started
](
../cn/getting_started.md
)
。
...
...
docs/en/thrift.md
View file @
fdb23393
...
...
@@ -33,7 +33,7 @@ sh config_brpc.sh --headers=/usr/include --libs=/usr/lib --with-thrift
# Fedora/CentOS
sh config_brpc.sh
--headers
=
/usr/include
--libs
=
/usr/lib64
--with-thrift
# Or use cmake
mkdir
b
uild
&&
cd
bui
ld
&&
cmake ../
-DWITH_THRIFT
=
ON
mkdir
b
ld
&&
cd
b
ld
&&
cmake ../
-DWITH_THRIFT
=
ON
```
Read
[
Getting Started
](
../cn/getting_started.md
)
for more compilation options.
...
...
src/butil/containers/linked_list.h
View file @
fdb23393
...
...
@@ -30,7 +30,7 @@
//
// list.Append(n1);
// list.Append(n3);
// n
3
->InsertBefore(n3);
// n
2
->InsertBefore(n3);
//
// Lastly, to iterate through the linked list forwards:
//
...
...
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