Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
27e506e4
Commit
27e506e4
authored
9 years ago
by
Joshua Colp
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Build: Add menuselect options for using compiler sanitizers"
parents
13229037
a12eb89e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile.rules
+20
-0
20 additions, 0 deletions
Makefile.rules
build_tools/cflags.xml
+28
-0
28 additions, 0 deletions
build_tools/cflags.xml
with
48 additions
and
0 deletions
Makefile.rules
+
20
−
0
View file @
27e506e4
...
...
@@ -27,6 +27,26 @@
# extra cflags to build dependencies. Recursively expanded.
MAKE_DEPS
=
-MD
-MT
$@
-MF
.
$(
subst /,_,
$@
)
.d
-MP
ifeq
($(findstring ADDRESS_SANITIZER,$(MENUSELECT_CFLAGS)),ADDRESS_SANITIZER)
_ASTLDFLAGS
+=
-fsanitize
=
address
_ASTCFLAGS
+=
-fno-omit-frame-pointer
-fsanitize
=
address
endif
ifeq
($(findstring THREAD_SANITIZER,$(MENUSELECT_CFLAGS)),THREAD_SANITIZER)
_ASTLDFLAGS
+=
-fsanitize
=
thread
-pie
-fPIE
_ASTCFLAGS
+=
-fno-omit-frame-pointer
-pie
-fPIE
-fsanitize
=
thread
endif
ifeq
($(findstring LEAK_SANITIZER,$(MENUSELECT_CFLAGS)),LEAK_SANITIZER)
_ASTLDFLAGS
+=
-fsanitize
=
leak
_ASTCFLAGS
+=
-fno-omit-frame-pointer
-fsanitize
=
leak
endif
ifeq
($(findstring UNDEFINED_SANITIZER,$(MENUSELECT_CFLAGS)),UNDEFINED_SANITIZER)
_ASTLDFLAGS
+=
-fsanitize
=
undefined
_ASTCFLAGS
+=
-fno-omit-frame-pointer
-fsanitize
=
undefined
endif
ifeq
($(NOISY_BUILD),)
ECHO_PREFIX
=
@
CMD_PREFIX
=
@
...
...
This diff is collapsed.
Click to expand it.
build_tools/cflags.xml
+
28
−
0
View file @
27e506e4
...
...
@@ -84,6 +84,34 @@
<conflict>
MALLOC_DEBUG
</conflict>
<support_level>
core
</support_level>
</member>
<member
name=
"ADDRESS_SANITIZER"
displayname=
"Address Sanitizer"
>
<support_level>
extended
</support_level>
<conflict>
THREAD_SANITIZER
</conflict>
<conflict>
LEAK_SANITIZER
</conflict>
<conflict>
UNDEFINED_SANITIZER
</conflict>
<conflict>
MALLOC_DEBUG
</conflict>
<conflict>
DEBUG_CHAOS
</conflict>
</member>
<member
name=
"THREAD_SANITIZER"
displayname=
"Thread Sanitizer"
>
<support_level>
extended
</support_level>
<conflict>
ADDRESS_SANITIZER
</conflict>
<conflict>
LEAK_SANITIZER
</conflict>
<conflict>
UNDEFINED_SANITIZER
</conflict>
</member>
<member
name=
"LEAK_SANITIZER"
displayname=
"Leak Sanitizer"
>
<support_level>
extended
</support_level>
<conflict>
ADDRESS_SANITIZER
</conflict>
<conflict>
THREAD_SANITIZER
</conflict>
<conflict>
UNDEFINED_SANITIZER
</conflict>
<conflict>
MALLOC_DEBUG
</conflict>
<conflict>
DEBUG_CHAOS
</conflict>
</member>
<member
name=
"UNDEFINED_SANITIZER"
displayname=
"Undefined Behavior Sanitizer"
>
<support_level>
extended
</support_level>
<conflict>
ADDRESS_SANITIZER
</conflict>
<conflict>
THREAD_SANITIZER
</conflict>
<conflict>
LEAK_SANITIZER
</conflict>
</member>
<member
name=
"BUSYDETECT_TONEONLY"
displayname=
"Enable additional comparision of only the tone duration not the silence part"
>
<conflict>
BUSYDETECT_COMPARE_TONE_AND_SILENCE
</conflict>
<defaultenabled>
no
</defaultenabled>
...
...
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