Skip to content

Build option for Address Sanitizer is broken #7968

@hahnjo

Description

@hahnjo

Describe the bug

cmake -Dasan=ON uses add_compile_options to add -fsanitize=address for all C++ files. This does not affect externally pulled in dependencies, in particular Clad.

Expected behavior

The option should result in a build where all components are built with Address Sanitizer.

To Reproduce

Configure with -Dasan=ON and notice that ASan reports a use-after-poison when only starting ./bin/root.exe.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions