Skip to content

Put sanitizer flags in global CMake variables, affecting all code - #3693

Merged
bjacob merged 2 commits into
iree-org:mainfrom
bjacob:consistent-sanitizers
Nov 3, 2020
Merged

bjacob merged 2 commits into
iree-org:mainfrom
bjacob:consistent-sanitizers

Conversation

@bjacob

@bjacob bjacob commented Nov 3, 2020

Copy link
Copy Markdown
Collaborator

My concern with putting it only on IREE code and not say on LLVM code
is that we might end up getting inconsistent results, particularly
with symbols used in both IREE and non-IREE code --- ODR violations,
concern here is both with the undefined-behavior aspect of that and
with the more down to earch concern that we want consistent sanitizer
behavior in say std::string code that might be used on both sides.

My concern with putting it only on IREE code and not say on LLVM code
is that we might end up getting inconsistent results, particularly
with symbols used in both IREE and non-IREE code --- ODR violations,
concern here is both with the undefined-behavior aspect of that and
with the more down to earch concern that we want consistent sanitizer
behavior in say std::string code that might be used on both sides.
@bjacob
bjacob merged commit c12ba3b into iree-org:main Nov 3, 2020
@hanhanW hanhanW mentioned this pull request Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants