Skip to content

Add Support for Sanitizers #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

kilo52
Copy link
Member

@kilo52 kilo52 commented Jun 30, 2025

In C and C++ project source templates, adds standard support for utilization of various sanitizers.

Adds the --sanitizers option to the build script in C and C++ project source templates. Provides a CMake function to add the corresponding compiler and linker flags to enable various sanitizers, e.g. a memory leak sanitizer.

Added the --sanitizers option to the build script in C++ executables
project source template. Provides a CMake function to add the corresponding
compiler and linker flags to enable various sanitizers, e.g. a memory leak
sanitizer.

Signed-off-by: kilo52 <[email protected]>
@kilo52 kilo52 self-assigned this Jun 30, 2025
@kilo52 kilo52 added Feature New feature Templates Changes in project source templates C++ Affects project source templates or init code for C++ C Affects project source templates or init code for C labels Jun 30, 2025
@kilo52 kilo52 linked an issue Jun 30, 2025 that may be closed by this pull request
kilo52 added 2 commits July 2, 2025 23:28
Added the --sanitizers option to the build script in C++ library project
source template.

Signed-off-by: kilo52 <[email protected]>
Added the --sanitizers option to the build script in C executable project
source template.

Signed-off-by: kilo52 <[email protected]>
@kilo52 kilo52 added Improvement Improvement of an existing feature and removed Feature New feature labels Jul 3, 2025
kilo52 added 2 commits July 5, 2025 13:22
Added the --sanitizers option to the build script in C library project
source template.

Signed-off-by: kilo52 <[email protected]>
Changed to use generator expressions for platform-dependent
compiler options.

Signed-off-by: kilo52 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ Affects project source templates or init code for C++ C Affects project source templates or init code for C Improvement Improvement of an existing feature Templates Changes in project source templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Standard Support for Sanitizers
1 participant