[webkit-changes] [WebKit/WebKit] a4d949: Make it possible to override -fsanitize-coverage f...

Commit Queue noreply at github.com
Sat Aug 12 10:23:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a4d949231543628dea22d883bed9b27422613927
      https://github.com/WebKit/WebKit/commit/a4d949231543628dea22d883bed9b27422613927
  Author: David Kilzer <ddkilzer at apple.com>
  Date:   2023-08-12 (Sat, 12 Aug 2023)

  Changed paths:
    M Configurations/Sanitizers.xcconfig
    M Makefile.shared

  Log Message:
  -----------
  Make it possible to override -fsanitize-coverage flags at build time
https://bugs.webkit.org/show_bug.cgi?id=260079
<rdar://113759381>

Reviewed by Alex Christensen.

* Configurations/Sanitizers.xcconfig:
(WK_SANITIZER_OTHER_LDFLAGS):
- Add -fsanitize-coverage flags to OTHER_LDFAGS to match what
  `ENABLE_FUZZER=YES` does for -fno-sanitize-coverage flag.
(WK_LIBFUZZER_COVERAGE): Add.
- Extract default coverage values to a variable to make it possible to
  override them.
(WK_LIBFUZZER_OTHER_CFLAGS_YES):
- Add -fsanitize-coverage flag.
- Remove -fno-sanitize-coverage=pc-table as that's already emitted by
  clang when ENABLE_LIBFUZZER=YES is set.
(WK_LIBFUZZER_OTHER_LDFLAGS_YES): Add.
- Define -fsanitize-coverage flag for use in WK_SANITIZER_OTHER_LDFLAGS.

* Makefile.shared:
- Add support for `WK_LIBFUZZER_COVERAGE=...` argument.

Canonical link: https://commits.webkit.org/266846@main




More information about the webkit-changes mailing list