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
42c2712b
Commit
42c2712b
authored
Aug 21, 2017
by
gejun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop support for gcc before 4.8
parent
8d94754e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
15 deletions
+18
-15
Makefile
Makefile
+0
-5
README
README
+3
-3
config_brpc.sh
config_brpc.sh
+15
-2
Makefile
test/Makefile
+0
-5
No files found.
Makefile
View file @
42c2712b
...
...
@@ -14,11 +14,6 @@ LIBPATHS = $(addprefix -L, $(LIBS))
SRCEXTS
=
.c .cc .cpp .proto
HDREXTS
=
.h .hpp
# strict-aliasing in gcc4.4 in buggy
ifeq
($(shell
echo
$$(($(GCC_VERSION)/
100))),
404)
CXXFLAGS
+=
-Wno-strict-aliasing
CFLAGS
+=
-Wno-strict-aliasing
endif
#required by base/crc32.cc to boost performance for 10x
ifeq
($(shell
test
$(GCC_VERSION)
-ge
40400;
echo
$$?),0)
CXXFLAGS
+=
-msse4
-msse4
.2
...
...
README
View file @
42c2712b
...
...
@@ -28,10 +28,10 @@ git clone this repo. cd into the repo and run: sh config_brpc.sh --headers=../..
download deps: third-64/tcmalloc@tcmalloc_1-7-0-200_PD_BL
Rerun config_brpc.sh
# Supported
toolchain
s:
GCC:
3.4
-7.1
# Supported
dep
s:
GCC:
4.8
-7.1
glibc: 2.12-2.25
protobuf: 2.4-3.2
gflags: 2.0-2.21
openssl: 0.9
8
-1.1
openssl: 0.9
7
-1.1
tcmalloc: 1.7-2.5
config_brpc.sh
View file @
42c2712b
...
...
@@ -13,8 +13,6 @@ if [ $? != 0 ] ; then >&2 $ECHO "Terminating..."; exit 1 ; fi
eval set
--
"
$TEMP
"
# Convert to abspath always so that generated mk is include-able from everywhere
CC
=
gcc
CXX
=
g++
while
true
;
do
case
"
$1
"
in
--headers
)
HDRS_IN
=
"
$(
readlink
-f
$2
)
"
;
shift
2
;;
...
...
@@ -25,8 +23,23 @@ while true; do
*
)
break
;;
esac
done
if
[
-z
"
$CC
"
]
;
then
if
[
!
-z
"
$CXX
"
]
;
then
>
&2
$ECHO
"--cc and --cxx must be both set or unset"
exit
1
fi
CC
=
gcc
CXX
=
g++
elif
[
-z
"
$CXX
"
]
;
then
>
&2
$ECHO
"--cc and --cxx must be both set or unset"
exit
1
fi
GCC_VERSION
=
$(
$CXX
tools/print_gcc_version.cc
-o
print_gcc_version
&&
./print_gcc_version
&&
rm
./print_gcc_version
)
if
[
$GCC_VERSION
-gt
0
]
&&
[
$GCC_VERSION
-lt
40800
]
;
then
>
&2
$ECHO
"GCC is too old, please install a newer version supporting C++11"
exit
1
fi
if
[
-z
"
$HDRS_IN
"
]
||
[
-z
"
$LIBS_IN
"
]
;
then
>
&2
$ECHO
"config_brpc: --headers=HDRPATHS --libs=LIBPATHS must be specified"
...
...
test/Makefile
View file @
42c2712b
...
...
@@ -7,11 +7,6 @@ CPPFLAGS+=-DUNIT_TEST -Dprivate=public -Dprotected=public -DBVAR_NOT_LINK_DEFAUL
CXXFLAGS
=
$(CPPFLAGS)
-g
-pipe
-Wall
-W
-fPIC
-fstrict-aliasing
-Wno-invalid-offsetof
-Wno-unused-parameter
-fno-omit-frame-pointer
-std
=
c++0x
CFLAGS
=
$(CPPFLAGS)
-g
-pipe
-Wall
-W
-fPIC
-fstrict-aliasing
-Wno-unused-parameter
-fno-omit-frame-pointer
# strict-aliasing in gcc4.4 in buggy
ifeq
($(shell
echo
$$(($(GCC_VERSION)/
100))),
404)
CXXFLAGS
+=
-Wno-strict-aliasing
CFLAGS
+=
-Wno-strict-aliasing
endif
#required by base/crc32.cc to boost performance for 10x
ifeq
($(shell
test
$(GCC_VERSION)
-ge
40400;
echo
$$?),0)
CXXFLAGS
+=
-msse4
-msse4
.2
...
...
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