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
fb1e559c
Commit
fb1e559c
authored
Nov 25, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Streamline sanitizer build option
parent
f15bfccb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
31 deletions
+6
-31
CMakeLists.txt
CMakeLists.txt
+3
-3
configure
configure
+3
-28
No files found.
CMakeLists.txt
View file @
fb1e559c
...
@@ -313,10 +313,10 @@ else()
...
@@ -313,10 +313,10 @@ else()
endif
()
endif
()
# enable address sanitizer if requested by the user
# enable address sanitizer 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
if
(
NOT APPLE AND NOT WIN32
)
if
(
NOT APPLE AND NOT WIN32
)
...
...
configure
View file @
fb1e559c
...
@@ -76,17 +76,9 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
...
@@ -76,17 +76,9 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
- INFO
- INFO
- DEBUG
- DEBUG
- TRACE
- TRACE
--with-address-sanitizer build with address sanitizer if available
--with-sanitizers=LIST build with this list of sanitizers enabled
--with-asan alias for --with-address-sanitier
--enable-asan alias for --with-address-sanitier
--with-gcov build with gcov coverage enabled
--with-actor-profiler enables the (experimental) actor_profiler API
--with-actor-profiler enables the (experimental) actor_profiler API
Convenience options:
--dev-mode sets --build-type=debug, --no-examples,
--no-tools, --with-runtime-checks,
--log-level=trace, and --enable-asan
Influential Environment Variables (only on first invocation):
Influential Environment Variables (only on first invocation):
CXX C++ compiler command
CXX C++ compiler command
CXXFLAGS C++ compiler flags (overrides defaults)
CXXFLAGS C++ compiler flags (overrides defaults)
...
@@ -238,17 +230,8 @@ while [ $# -ne 0 ]; do
...
@@ -238,17 +230,8 @@ while [ $# -ne 0 ]; do
--with-runtime-checks
)
--with-runtime-checks
)
append_cache_entry CAF_ENABLE_RUNTIME_CHECKS BOOL
yes
append_cache_entry CAF_ENABLE_RUNTIME_CHECKS BOOL
yes
;;
;;
--with-address-sanitizer
)
--with-sanitizers
=
*
)
append_cache_entry CAF_ENABLE_ADDRESS_SANITIZER BOOL
yes
append_cache_entry CAF_SANITIZERS STRING
"
$optarg
"
;;
--with-asan
)
append_cache_entry CAF_ENABLE_ADDRESS_SANITIZER BOOL
yes
;;
--enable-asan
)
append_cache_entry CAF_ENABLE_ADDRESS_SANITIZER BOOL
yes
;;
--with-gcov
)
append_cache_entry CAF_ENABLE_GCOV BOOL
yes
;;
;;
--with-actor-profiler
)
--with-actor-profiler
)
append_cache_entry CAF_ENABLE_ACTOR_PROFILER BOOL
yes
append_cache_entry CAF_ENABLE_ACTOR_PROFILER BOOL
yes
...
@@ -373,14 +356,6 @@ while [ $# -ne 0 ]; do
...
@@ -373,14 +356,6 @@ while [ $# -ne 0 ]; do
append_cache_entry
$var
BOOL
yes
append_cache_entry
$var
BOOL
yes
done
done
;;
;;
--dev-mode
)
append_cache_entry CMAKE_BUILD_TYPE STRING Debug
append_cache_entry CAF_NO_EXAMPLES BOOL
yes
append_cache_entry CAF_NO_TOOLS BOOL
yes
append_cache_entry CAF_LOG_LEVEL STRING TRACE
append_cache_entry CAF_ENABLE_RUNTIME_CHECKS BOOL
yes
append_cache_entry CAF_ENABLE_ADDRESS_SANITIZER BOOL
yes
;;
*
)
*
)
echo
"Invalid option '
$1
'. Try
$0
--help to see available options."
echo
"Invalid option '
$1
'. Try
$0
--help to see available options."
exit
1
exit
1
...
...
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