mirror of
https://github.com/boostorg/build.git
synced 2026-02-14 00:32:11 +00:00
Add support for leak sanitizer: (#435)
Can be enabled via the `leak-sanitizer` feature. Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
This commit is contained in:
committed by
Rene Rivera
parent
f553984b77
commit
16f49cac33
@@ -18,3 +18,7 @@ feature.feature undefined-sanitizer
|
||||
feature.feature thread-sanitizer
|
||||
: on norecover
|
||||
: propagated optional ;
|
||||
feature.feature leak-sanitizer
|
||||
: on norecover
|
||||
: propagated optional ;
|
||||
|
||||
|
||||
@@ -733,9 +733,11 @@ toolset.flags gcc.compile.c++ OPTIONS <exception-handling>off : -fno-exceptions
|
||||
toolset.flags gcc.compile.c++ OPTIONS <address-sanitizer>on : -fsanitize=address ;
|
||||
toolset.flags gcc.compile.c++ OPTIONS <undefined-sanitizer>on : -fsanitize=undefined ;
|
||||
toolset.flags gcc.compile.c++ OPTIONS <thread-sanitizer>on : -fsanitize=thread ;
|
||||
toolset.flags gcc.compile.c++ OPTIONS <leak-sanitizer>on : -fsanitize=leak ;
|
||||
toolset.flags gcc.compile.c++ OPTIONS <address-sanitizer>norecover : -fsanitize=address -fno-sanitize-recover=address ;
|
||||
toolset.flags gcc.compile.c++ OPTIONS <undefined-sanitizer>norecover : -fsanitize=undefined -fno-sanitize-recover=undefined ;
|
||||
toolset.flags gcc.compile.c++ OPTIONS <thread-sanitizer>norecover : -fsanitize=thread -fno-sanitize-recover=thread ;
|
||||
toolset.flags gcc.compile.c++ OPTIONS <leak-sanitizer>norecover : -fsanitize=leak -fno-sanitize-recover=leak ;
|
||||
toolset.flags gcc.compile.c++ OPTIONS <coverage>all : --coverage ;
|
||||
toolset.flags gcc.compile.c++ OPTIONS <coverage>profile : -fprofile-arcs ;
|
||||
toolset.flags gcc.compile.c++ OPTIONS <coverage>test : -ftest-coverage ;
|
||||
@@ -882,9 +884,11 @@ toolset.flags gcc.link OPTIONS <local-visibility>global : -fvisibility=default ;
|
||||
toolset.flags gcc.link OPTIONS <address-sanitizer>on : -fsanitize=address ;
|
||||
toolset.flags gcc.link OPTIONS <undefined-sanitizer>on : -fsanitize=undefined ;
|
||||
toolset.flags gcc.link OPTIONS <thread-sanitizer>on : -fsanitize=thread ;
|
||||
toolset.flags gcc.link OPTIONS <leak-sanitizer>on : -fsanitize=leak ;
|
||||
toolset.flags gcc.link OPTIONS <address-sanitizer>norecover : -fsanitize=address -fno-sanitize-recover=address ;
|
||||
toolset.flags gcc.link OPTIONS <undefined-sanitizer>norecover : -fsanitize=undefined -fno-sanitize-recover=undefined ;
|
||||
toolset.flags gcc.link OPTIONS <thread-sanitizer>norecover : -fsanitize=thread -fno-sanitize-recover=thread ;
|
||||
toolset.flags gcc.link OPTIONS <leak-sanitizer>norecover : -fsanitize=leak -fno-sanitize-recover=leak ;
|
||||
toolset.flags gcc.link OPTIONS <coverage>all : --coverage ;
|
||||
toolset.flags gcc.link OPTIONS <coverage>profile : -fprofile-arcs ;
|
||||
toolset.flags gcc.link OPTIONS <coverage>test : -lgcov ;
|
||||
|
||||
Reference in New Issue
Block a user