-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ANGLE] Add target for metal_translator_fuzzer #23337
[ANGLE] Add target for metal_translator_fuzzer #23337
Conversation
EWS run on previous version of this PR (hash 43ecf67) |
@@ -186,6 +191,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) | |||
|
|||
if (translator == nullptr) | |||
{ | |||
sh::Finalize(); // WebKit change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just remove the comments..
We manage the changes other way, so maybe just add the code as you would in a normal and I can upstream them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will do. Thanks! (I was trying to follow the libwebrtc
rules here.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably don't need to upstream the ANGLE_TRANSLATOR_FUZZER_METAL_ONLY
change, but wouldn't hurt.
43ecf67
to
b975b63
Compare
EWS run on current version of this PR (hash b975b63) |
https://bugs.webkit.org/show_bug.cgi?id=268201 <rdar://98947215> Reviewed by Kimmo Kinnunen. * Source/ThirdParty/ANGLE/ANGLE.xcodeproj/project.pbxproj: - Add BaseTarget.xcconfig and metal_translator_fuzzer.xcconfig. (metal_translator_fuzzer): Add target. - Add translator_fuzzer.cpp to the project. * Source/ThirdParty/ANGLE/Configurations/ANGLE-dynamic.xcconfig: - Add copyright header. (ANGLE_ALLOWABLE_CLIENTS): Add. - Disable -allowable_client switches when libFuzzer is enabled. (GCC_SYMBOLS_PRIVATE_EXTERN): Add. - Disable private extern symbols when libFuzzer is enabled. * Source/ThirdParty/ANGLE/Configurations/BaseTarget.xcconfig: Add. - Extract common settings from ANGLE-dynamic.xcconfig. (ANGLE_HEADER_PATH_PREFIX): Add. - Add variable for header include path prefix so it may be overridden. * Source/ThirdParty/ANGLE/Configurations/metal_translator_fuzzer.xcconfig: Add. * Source/ThirdParty/ANGLE/src/compiler/fuzz/translator_fuzzer.cpp: (LLVMFuzzerTestOneInput): - Add a way to disable non-Metal outputs at build time. - Add SH_MSL_METAL_OUTPUT as a valid output. - Call sh::Finalize() after each test case since sh::Initialize is called at the start of every test case. Canonical link: https://commits.webkit.org/273682@main
b975b63
to
704290f
Compare
Committed 273682@main (704290f): https://commits.webkit.org/273682@main Reviewed commits have been landed. Closing PR #23337 and removing active labels. |
704290f
b975b63
π wpeπ wincairoπ§ͺ wpe-wk2π§ͺ ios-wk2π§ͺ api-macπ§ͺ api-wpeπ§ͺ ios-wk2-wptπ§ͺ mac-wk1π gtkπ§ͺ api-iosπ§ͺ mac-wk2π§ͺ gtk-wk2π tvπ§ͺ mac-AS-debug-wk2π§ͺ api-gtkπ tv-simπ watchπ watch-sim