Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
actor-incubator
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
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-incubator
Commits
b9c3d091
Commit
b9c3d091
authored
Dec 17, 2019
by
Jakob Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable ubsan
parent
1ea49b14
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
18 deletions
+14
-18
CMakeLists.txt
CMakeLists.txt
+3
-3
Jenkinsfile
Jenkinsfile
+5
-10
configure
configure
+6
-5
No files found.
CMakeLists.txt
View file @
b9c3d091
...
@@ -287,10 +287,10 @@ if(CAF_MORE_WARNINGS)
...
@@ -287,10 +287,10 @@ if(CAF_MORE_WARNINGS)
endif
()
endif
()
# Enable ASAN if requested by the user.
# Enable ASAN if requested by the user.
if
(
CAF_
ENABLE_ADDRESS_SANITIZER AND NOT WIN32
)
if
(
CAF_
SANITIZERS
)
add_compile_options
(
"-fsanitize=
address
"
add_compile_options
(
"-fsanitize=
${
CAF_SANITIZERS
}
"
"-fno-omit-frame-pointer"
)
"-fno-omit-frame-pointer"
)
list
(
APPEND CAF_EXTRA_LDFLAGS
"-fsanitize=
address
"
)
list
(
APPEND CAF_EXTRA_LDFLAGS
"-fsanitize=
${
CAF_SANITIZERS
}
"
)
endif
()
endif
()
# -pthread is ignored on MacOSX but required on other platforms
# -pthread is ignored on MacOSX but required on other platforms
...
...
Jenkinsfile
View file @
b9c3d091
...
@@ -9,7 +9,7 @@ defaultReleaseBuildFlags = [
...
@@ -9,7 +9,7 @@ defaultReleaseBuildFlags = [
// Default CMake flags for debug builds.
// Default CMake flags for debug builds.
defaultDebugBuildFlags
=
defaultReleaseBuildFlags
+
[
defaultDebugBuildFlags
=
defaultReleaseBuildFlags
+
[
'CAF_
ENABLE_ADDRESS_SANITIZER:BOOL=yes
'
,
'CAF_
SANITIZERS:STRING=address,undefined
'
,
'CAF_LOG_LEVEL:STRING=TRACE'
,
'CAF_LOG_LEVEL:STRING=TRACE'
,
]
]
...
@@ -61,6 +61,7 @@ config = [
...
@@ -61,6 +61,7 @@ config = [
builds:
[
'debug'
],
builds:
[
'debug'
],
tools:
[
'gcc-8'
],
tools:
[
'gcc-8'
],
extraSteps:
[
'coverageReport'
],
extraSteps:
[
'coverageReport'
],
extraFlags:
[
'BUILD_SHARED_LIBS:BOOL=OFF'
],
]],
]],
[
'fedora-28'
,
[
[
'fedora-28'
,
[
builds:
[
'release'
],
builds:
[
'release'
],
...
@@ -94,19 +95,13 @@ config = [
...
@@ -94,19 +95,13 @@ config = [
],
],
// CMake flags by OS and build type to override defaults for individual builds.
// CMake flags by OS and build type to override defaults for individual builds.
buildFlags:
[
buildFlags:
[
Windows:
[
nop:
[],
debug:
defaultDebugBuildFlags
+
[
'CAF_BUILD_STATIC_ONLY:BOOL=yes'
,
],
release:
defaultReleaseBuildFlags
+
[
'CAF_BUILD_STATIC_ONLY:BOOL=yes'
,
],
],
],
],
// Configures what binary the coverage report uses and what paths to exclude.
// Configures what binary the coverage report uses and what paths to exclude.
coverage:
[
coverage:
[
binary:
'build/
incubator
-test'
,
binary:
'build/
libcaf_net/caf-net
-test'
,
relativeExcludePaths:
[
relativeExcludePaths:
[
'libcaf_net/test'
],
],
],
],
]
]
...
...
configure
View file @
b9c3d091
...
@@ -43,10 +43,11 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
...
@@ -43,10 +43,11 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--prefix=PREFIX installation directory [/usr/local]
--prefix=PREFIX installation directory [/usr/local]
Debugging:
Debugging:
--
enable-asan build with address sanitizer
--
with-sanitizers=LIST build with this list of sanitizers enabled
Convenience options:
Convenience options:
--dev-mode sets --build-type=debug and --enable-asan
--dev-mode sets --build-type=debug and
--sanitizers=address,undefined
Influential Environment Variables (only on first invocation):
Influential Environment Variables (only on first invocation):
CXX C++ compiler command
CXX C++ compiler command
...
@@ -116,8 +117,8 @@ while [ $# -ne 0 ]; do
...
@@ -116,8 +117,8 @@ while [ $# -ne 0 ]; do
--prefix
=
*
)
--prefix
=
*
)
append_cache_entry CMAKE_INSTALL_PREFIX PATH
"
$optarg
"
append_cache_entry CMAKE_INSTALL_PREFIX PATH
"
$optarg
"
;;
;;
--
enable-asan
)
--
with-sanitizers
=
*
)
append_cache_entry CAF_
ENABLE_ADDRESS_SANITIZER BOOL
yes
append_cache_entry CAF_
SANITIZERS STRING
"
$optarg
"
;;
;;
--more-warnings
)
--more-warnings
)
append_cache_entry CAF_MORE_WARNINGS BOOL
yes
append_cache_entry CAF_MORE_WARNINGS BOOL
yes
...
@@ -176,7 +177,7 @@ while [ $# -ne 0 ]; do
...
@@ -176,7 +177,7 @@ while [ $# -ne 0 ]; do
;;
;;
--dev-mode
)
--dev-mode
)
append_cache_entry CMAKE_BUILD_TYPE STRING Debug
append_cache_entry CMAKE_BUILD_TYPE STRING Debug
append_cache_entry CAF_
ENABLE_ADDRESS_SANITIZER BOOL
yes
append_cache_entry CAF_
SANITIZERS STRING address,undefined
;;
;;
*
)
*
)
echo
"Invalid option '
$1
'. Try
$0
--help to see available options."
echo
"Invalid option '
$1
'. Try
$0
--help to see available options."
...
...
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