[webkit-changes] [WebKit/WebKit] e812d6: [WebGPU] Make wgslc and wgslfuzz distinct from eac...

Myles C. Maxfield noreply at github.com
Mon Jul 24 16:36:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e812d681255b5530d4bdc7272899b17dbf023342
      https://github.com/WebKit/WebKit/commit/e812d681255b5530d4bdc7272899b17dbf023342
  Author: Myles C. Maxfield <mmaxfield at apple.com>
  Date:   2023-07-24 (Mon, 24 Jul 2023)

  Changed paths:
    A Source/WebGPU/Configurations/wgslfuzz.xcconfig
    M Source/WebGPU/WGSL/wgslc.cpp
    A Source/WebGPU/WGSL/wgslfuzz.cpp
    M Source/WebGPU/WebGPU.xcodeproj/project.pbxproj
    A Source/WebGPU/WebGPU.xcodeproj/xcshareddata/xcschemes/wgslfuzz.xcscheme

  Log Message:
  -----------
  [WebGPU] Make wgslc and wgslfuzz distinct from each other
https://bugs.webkit.org/show_bug.cgi?id=259454
rdar://112798797

Reviewed by Mike Wyrzykowski.

It would be useful to make the compiler and the fuzzer different executables
for local development, so when the fuzzer finds a problem, you can feed that
into the compiler to debug it.

The way this works is:
% set-webkit-configuration --debug --asan --libFuzzer
% cd Source/WebGPU
% make SCHEME=wgslfuzz
% make SCHEME=wgslc
% ASAN_OPTIONS=whatever DYLD_FRAMEWORK_PATH=/path/to/Products/Debug DYLD_LIBRARY_PATH=/path/to/Products/Debug /path/to/Products/Debug/wgslfuzz
% ASAN_OPTIONS=whatever DYLD_FRAMEWORK_PATH=/path/to/Products/Debug DYLD_LIBRARY_PATH=/path/to/Products/Debug /path/to/Products/Debug/wgslc

* Source/WebGPU/Configurations/wgslfuzz.xcconfig: Added.
* Source/WebGPU/WGSL/wgslc.cpp:
(main):
(LLVMFuzzerTestOneInput): Deleted.
* Source/WebGPU/WGSL/wgslfuzz.cpp: Added.
(LLVMFuzzerTestOneInput):
* Source/WebGPU/WebGPU.xcodeproj/project.pbxproj:
* Source/WebGPU/WebGPU.xcodeproj/xcshareddata/xcschemes/wgslfuzz.xcscheme: Added.

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




More information about the webkit-changes mailing list