-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Update coverage options for fuzzing to match clang. #26156
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
Conversation
While we are there, could we also set OptForFuzzing? |
Otherwise LG |
Sorry, I don't see that here: https://llvm.org/doxygen/structllvm_1_1SanitizerCoverageOptions.html. I believe that needs to be set on each function. |
It's an LLVM codegen option. OK, adding it might be non-trivial, let's merge this as-is. |
@swift-ci please test |
@pschuh Why not merge this into |
Hmm, good question. Let me rebase. |
I'm not sure what LLVM version master and master-next are rev-locked into. Though if tests pass on master we should be good to go. |
I believe since it is based on master-next it'll run the master-next tests. |
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please test |
@swift-ci please test macos |
Build failed |
The error is:
It seems you have forgotten to guard one of the options on "is linux" condition. |
@swift-ci please test macos |
Build failed |
@swift-ci please test linux |
Build failed |
Also please change the commit title to "Update coverage options for fuzzing to match clang" |
Some of the sanitizer tests were crashing due to "-fsanitize-coverage=trace-pc-guard" which comes from setting "TracePCGuard" on Opts.SanitizeCoverage. I pulled the current options from clang.