Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
2720993a
Commit
2720993a
authored
1 year ago
by
Sébastien Blin
Committed by
Adrien Béraud
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
cmake: add ASAN option
Change-Id: I5ae4fe47e00172eda2e1b51d9dd31a6157540179
parent
9f64b9ec
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+7
-0
7 additions, 0 deletions
CMakeLists.txt
with
7 additions
and
0 deletions
CMakeLists.txt
+
7
−
0
View file @
2720993a
...
...
@@ -20,6 +20,13 @@ option(JAMI_VIDEO "Build with video support" ON)
option
(
JAMI_VIDEO_ACCEL
"Build video hardware acceleration support"
ON
)
option
(
BUILD_CONTRIB
"Build contrib to CONTRIB_PATH"
ON
)
option
(
BUILD_EXTRA_TOOLS
"Build extra tools"
OFF
)
option
(
ENABLE_ASAN
"Enable address sanitization"
OFF
)
if
(
ENABLE_ASAN AND NOT MSVC
)
message
(
STATUS
"Address sanitization enabled for daemon"
)
# Add AddressSanitizer flags for both compiler and linker
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-fsanitize=address -fno-omit-frame-pointer"
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
-fsanitize=address"
)
endif
()
include
(
CTest
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment