RESOLVED FIXED 187222
[CMake] build-webkit should be able to enable address sanitizer
https://bugs.webkit.org/show_bug.cgi?id=187222
Summary [CMake] build-webkit should be able to enable address sanitizer
Michael Catanzaro
Reported 2018-06-30 11:58:02 PDT
If I have run 'set-webkit-configuration --asan' then build-webkit should pass -DENABLE_ADDRESS_SANITIZER=ON to CMake, so it actually does something.
Attachments
Patch (1.21 KB, patch)
2018-06-30 11:58 PDT, Michael Catanzaro
dbates: review+
Michael Catanzaro
Comment 1 2018-06-30 11:58:37 PDT
Daniel Bates
Comment 2 2018-06-30 12:48:50 PDT
Comment on attachment 344018 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=344018&action=review Do we already support ASan building with CMake using script build-jsc? If not, we should fix this up. > Tools/ChangeLog:7 > + Please add a description for this change. I liked what you wrote in comment 0.
Daniel Bates
Comment 3 2018-06-30 12:50:20 PDT
Comment on attachment 344018 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=344018&action=review > Tools/Scripts/webkitdirs.pm:2255 > + determineASanIsEnabled(); It is unnecessary to call this. We should call asanIsEnabled() on the line below (notice it is a function call).
Michael Catanzaro
Comment 4 2018-06-30 13:57:56 PDT
(In reply to Daniel Bates from comment #2) > Comment on attachment 344018 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=344018&action=review > > Do we already support ASan building with CMake using script build-jsc? If > not, we should fix this up. We did not, but build-jsc uses buildCMakeProjectOrExit(), which calls generateBuildSystemFromCMakeProject(), which is the function I'm modifying here, so now it will. > > Tools/ChangeLog:7 > > + > > Please add a description for this change. I liked what you wrote in comment > 0. OK. (In reply to Daniel Bates from comment #3) > It is unnecessary to call this. We should call asanIsEnabled() on the line > below (notice it is a function call). Yes.
Michael Catanzaro
Comment 5 2018-06-30 14:07:54 PDT
Radar WebKit Bug Importer
Comment 6 2018-06-30 14:08:23 PDT
Note You need to log in before you can comment on or make changes to this bug.