Bug 237556

Summary: Fix Release builds for sanitizers by defining RELEASE_WITHOUT_OPTIMIZATIONS
Product: WebKit Reporter: David Kilzer (:ddkilzer) <ddkilzer>
Component: Tools / TestsAssignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: katherine_cheney, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch v1 none

Description David Kilzer (:ddkilzer) 2022-03-07 14:13:40 PST
Fix Release builds for sanitizers by defining RELEASE_WITHOUT_OPTIMIZATIONS.

If this is not defined, errors like this occur when building Release with lower optimization levels:

    Source/WTF/wtf/Compiler.h:103:2: error: "Building release without compiler optimizations: WebKit will be slow. Set -DRELEASE_WITHOUT_OPTIMIZATIONS if this is intended."
Comment 1 Radar WebKit Bug Importer 2022-03-07 14:13:57 PST
<rdar://problem/89929061>
Comment 2 David Kilzer (:ddkilzer) 2022-03-07 14:15:11 PST
Created attachment 454034 [details]
Patch v1
Comment 3 David Kilzer (:ddkilzer) 2022-03-07 16:40:45 PST
Comment on attachment 454034 [details]
Patch v1

cq+ since this doesn't affect non-sanitizer builds.
Comment 4 EWS 2022-03-07 19:01:52 PST
Committed r290970 (248149@main): <https://commits.webkit.org/248149@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 454034 [details].