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
fd9a6e94
Commit
fd9a6e94
authored
Sep 18, 2017
by
gejun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/brpc/brpc
parents
a9cd5bb3
a6109bee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
7 deletions
+20
-7
Makefile
test/Makefile
+1
-7
sstream_workaround.h
test/sstream_workaround.h
+19
-0
No files found.
test/Makefile
View file @
fd9a6e94
...
...
@@ -3,7 +3,7 @@ NEED_GTEST=1
NEED_GMOCK
=
1
include
../config.mk
CPPFLAGS
+=
-DBTHREAD_USE_FAST_PTHREAD_MUTEX
-D__const__
=
-D_GNU_SOURCE
-DUSE_SYMBOLIZE
-DNO_TCMALLOC
-D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS
CPPFLAGS
+=
-DUNIT_TEST
-Dprivate
=
public
-Dprotected
=
public
-DBVAR_NOT_LINK_DEFAULT_VARIABLES
CPPFLAGS
+=
-DUNIT_TEST
-Dprivate
=
public
-Dprotected
=
public
-DBVAR_NOT_LINK_DEFAULT_VARIABLES
--include
sstream_workaround.h
CXXFLAGS
+=
$(CPPFLAGS)
-g
-pipe
-Wall
-W
-fPIC
-fstrict-aliasing
-Wno-invalid-offsetof
-Wno-unused-parameter
-fno-omit-frame-pointer
-std
=
c++0x
#required by butil/crc32.cc to boost performance for 10x
...
...
@@ -46,7 +46,6 @@ TEST_BUTIL_SOURCES = \
dir_reader_posix_unittest.cc
\
file_path_unittest.cc
\
file_unittest.cc
\
path_service_unittest.cc
\
scoped_temp_dir_unittest.cc
\
guid_unittest.cc
\
hash_unittest.cc
\
...
...
@@ -62,8 +61,6 @@ TEST_BUTIL_SOURCES = \
weak_ptr_unittest.cc
\
observer_list_unittest.cc
\
file_descriptor_shuffle_unittest.cc
\
process_metrics_unittest.cc
\
process_util_unittest.cc
\
rand_util_unittest.cc
\
safe_numerics_unittest.cc
\
scoped_clear_errno_unittest.cc
\
...
...
@@ -104,7 +101,6 @@ TEST_BUTIL_SOURCES = \
version_unittest.cc
\
logging_unittest.cc
\
tuple_unittest.cc
\
xdg_util_unittest.cc
\
cacheline_unittest.cpp
\
class_name_unittest.cpp
\
endpoint_unittest.cpp
\
...
...
@@ -124,11 +120,9 @@ TEST_BUTIL_SOURCES = \
flat_map_unittest.cpp
\
crc32c_unittest.cc
\
iobuf_unittest.cc
\
multiprocess_func_list.cc
\
test_switches.cc
\
test_timeouts.cc
\
scoped_locale.cc
\
multiprocess_test.cc
\
test_file_util.cc
\
test_file_util_linux.cc
\
butil_unittest_main.cpp
...
...
test/sstream_workaround.h
0 → 100644
View file @
fd9a6e94
// Copyright (c) 2017 Baidu, Inc.
// Author: Zhangyi Chen (chenzhangyi01@baidu.com)
#ifndef BUTIL_TEST_SSTREAM_WORKAROUND
#define BUTIL_TEST_SSTREAM_WORKAROUND
// defining private as public makes it fail to compile sstream with gcc5.x like this:
// "error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Traits, _Alloc>::
// __xfer_bufptrs’ redeclared with different access"
#ifdef private
# undef private
# include <sstream>
# define private public
#else
# include <sstream>
#endif
#endif // BUTIL_TEST_SSTREAM_WORKAROUND
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