Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
las3_pub
/
predictable_parallel_patterns
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e6565ef0
authored
Mar 26, 2019
by
FritzFlorian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add AddressSanitizer Script.
parent
5bdca02f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
CMakeLists.txt
+1
-0
cmake/SetupAddressSanitizer.cmake
+10
-0
No files found.
CMakeLists.txt
View file @
e6565ef0
...
@@ -14,6 +14,7 @@ include(cmake/DisabelInSource.cmake)
...
@@ -14,6 +14,7 @@ include(cmake/DisabelInSource.cmake)
include
(
cmake/SetupOptimizationLevel.cmake
)
include
(
cmake/SetupOptimizationLevel.cmake
)
include
(
cmake/SetupThreadingSupport.cmake
)
include
(
cmake/SetupThreadingSupport.cmake
)
include
(
cmake/SetupThreadSanitizer.cmake
)
include
(
cmake/SetupThreadSanitizer.cmake
)
include
(
cmake/SetupAddressSanitizer.cmake
)
# make our internal cmake script collection avaliable in the build process.
# make our internal cmake script collection avaliable in the build process.
list
(
APPEND CMAKE_PREFIX_PATH
"
${
PROJECT_SOURCE_DIR
}
/cmake"
)
list
(
APPEND CMAKE_PREFIX_PATH
"
${
PROJECT_SOURCE_DIR
}
/cmake"
)
...
...
cmake/SetupAddressSanitizer.cmake
0 → 100644
View file @
e6565ef0
# Optionally compile with thread sanitizer enabled to find concurrency bugs
# https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual
# Add optional sanitizer, off by default
option
(
ADDRESS_SANITIZER
"Add address sanitizer"
OFF
)
if
(
ADDRESS_SANITIZER
)
add_compile_options
(
-fsanitize=address -fno-omit-frame-pointer -fsanitize-address-use-after-scope -g
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
-fsanitize=address"
)
endif
()
message
(
"-- Address Sanitizer:
${
ADDRESS_SANITIZER
}
"
)
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