Hi all,

Because source fortification has been turned on in Xcode headers
recently, we have to disable it when building the code with
AddressSanitizer.
The proposed patch (see attached) defines _FORTIFY_SOURCE=0 if
-faddress-sanitizer is passed to the compiler.
Because other systems are not affected by the change, I've decided to
run the test only on Darwin (and introduced the 'system-darwin' config
feature)

Codereview link: https://codereview.appspot.com/6534045

-- 
Alexander Potapenko
Software Engineer
Google Moscow

Attachment: darwin-asan-nofortify.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to