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
18a8a666
Commit
18a8a666
authored
Jan 22, 2014
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added --enable-address-sanitizer config option
parent
70c87f40
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
CMakeLists.txt
CMakeLists.txt
+7
-2
configure
configure
+4
-0
No files found.
CMakeLists.txt
View file @
18a8a666
...
@@ -88,14 +88,19 @@ endif ()
...
@@ -88,14 +88,19 @@ endif ()
if
(
ENABLE_DEBUG
)
if
(
ENABLE_DEBUG
)
set
(
CMAKE_BUILD_TYPE Debug
)
set
(
CMAKE_BUILD_TYPE Debug
)
add_definitions
(
-DCPPA_DEBUG_MODE
)
add_definitions
(
-DCPPA_DEBUG_MODE
)
message
(
STATUS
"----- configured using --enable-debug
"
)
message
(
STATUS
"Enable libcppa's debug mode
"
)
endif
(
ENABLE_DEBUG
)
endif
(
ENABLE_DEBUG
)
if
(
ENABLE_ADDRESS_SANITIZER
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fsanitize=address -fno-omit-frame-pointer"
)
message
(
STATUS
"Enable address sanitizer"
)
endif
(
ENABLE_ADDRESS_SANITIZER
)
if
(
CPPA_LOG_LEVEL
)
if
(
CPPA_LOG_LEVEL
)
add_definitions
(
-DCPPA_LOG_LEVEL=
${
CPPA_LOG_LEVEL
}
)
add_definitions
(
-DCPPA_LOG_LEVEL=
${
CPPA_LOG_LEVEL
}
)
endif
(
CPPA_LOG_LEVEL
)
endif
(
CPPA_LOG_LEVEL
)
message
(
STATUS
"B
LUBB
:
${
CMAKE_BUILD_TYPE
}
"
)
message
(
STATUS
"B
uild type
:
${
CMAKE_BUILD_TYPE
}
"
)
# set build default build type if not set
# set build default build type if not set
if
(
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
""
)
if
(
"
${
CMAKE_BUILD_TYPE
}
"
STREQUAL
""
)
...
...
configure
View file @
18a8a666
...
@@ -45,6 +45,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
...
@@ -45,6 +45,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--enable-debug compile in debugging mode
--enable-debug compile in debugging mode
(always sets --build-type=Debug)
(always sets --build-type=Debug)
--enable-perftools use Google perftools
--enable-perftools use Google perftools
--enable-address-sanitizer use Clang's address sanitizer
--with-cppa-log-level=LVL sets the debugging output, possible values:
--with-cppa-log-level=LVL sets the debugging output, possible values:
- ERROR
- ERROR
- WARNING
- WARNING
...
@@ -161,6 +162,9 @@ while [ $# -ne 0 ]; do
...
@@ -161,6 +162,9 @@ while [ $# -ne 0 ]; do
--enable-debug
)
--enable-debug
)
append_cache_entry ENABLE_DEBUG BOOL
true
append_cache_entry ENABLE_DEBUG BOOL
true
;;
;;
--enable-address-sanitizer
)
append_cache_entry ENABLE_ADDRESS_SANITIZER BOOL
true
;;
--with-opencl
)
--with-opencl
)
append_cache_entry ENABLE_OPENCL BOOL
true
append_cache_entry ENABLE_OPENCL BOOL
true
;;
;;
...
...
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