Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
5097f69c
Commit
5097f69c
authored
Jan 19, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for GCOV reports
parent
5c0f09bb
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
CMakeLists.txt
CMakeLists.txt
+4
-0
cmake/jenkins.cmake
cmake/jenkins.cmake
+1
-1
configure
configure
+4
-0
No files found.
CMakeLists.txt
View file @
5097f69c
...
...
@@ -115,6 +115,10 @@ endif()
if
(
CAF_CXX_WARNINGS_AS_ERRORS
)
set
(
EXTRA_FLAGS
"
${
EXTRA_FLAGS
}
-Werror"
)
endif
()
# set compiler flags for GCOV if requested
if
(
CAF_ENABLE_GCOV
)
set
(
EXTRA_FLAGS
"
${
EXTRA_FLAGS
}
-fprofile-arcs -ftest-coverage"
)
endif
()
# enable a ton of warnings if --more-clang-warnings is used
if
(
CAF_MORE_WARNINGS
)
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
MATCHES
"Clang"
)
...
...
cmake/jenkins.cmake
View file @
5097f69c
set
(
LABEL_EXPR
"$ENV{label_exp}"
)
if
(
"
${
LABEL_EXPR
}
"
MATCHES
"gcc"
)
if
(
"
${
LABEL_EXPR
}
"
MATCHES
"gcc"
OR
"
${
LABEL_EXPR
}
"
MATCHES
"gcovr"
)
message
(
STATUS
"Set CXX to g++ based on label_expr content"
)
set
(
CMAKE_C_COMPILER
"gcc"
CACHE PATH
"C compiler option"
)
set
(
CMAKE_CXX_COMPILER
"g++"
CACHE PATH
"C++ compiler option"
)
...
...
configure
View file @
5097f69c
...
...
@@ -79,6 +79,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
- DEBUG
- TRACE
--with-address-sanitizer build with address sanitizer if available
--with-gcov build with gcov coverage enabled
Influential Environment Variables (only on first invocation):
CXX C++ compiler command
...
...
@@ -222,6 +223,9 @@ while [ $# -ne 0 ]; do
--with-address-sanitizer
)
append_cache_entry CAF_ENABLE_ADDRESS_SANITIZER BOOL
yes
;;
--with-gcov
)
append_cache_entry CAF_ENABLE_GCOV BOOL
yes
;;
--no-memory-management
)
append_cache_entry CAF_NO_MEM_MANAGEMENT BOOL
yes
;;
...
...
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