forked from arsenm/sanitizers-cmake
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added option for static linking gcc sanitizers.
If you like to preload a sanitized library in front of an application, it will fail, because it is not the first in the library list anymore. This behaviour is gcc specific - clang will static link the sanitizers instead. To get the same for gcc, the new SANITIZE_LINK_STATIC flag will link the sanitizers static in gcc environments. Note: The preloaded executable must be sanitized, too! Otherwise ASan will print an error message!
- Loading branch information
Showing
3 changed files
with
50 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters