tint_wgsl_fuzzer: disable dxc validation in asan + debug
We're hitting timeouts because DXC takes a lot more time in asan + debug
builds. For now, let's work around this by just disabling dxc validation
in this config. We'll rely on asan + release to fuzz dxc.
Bug: 352402877
Change-Id: I6a6af5e2cee70bfbc837aa484d88256ac7290105
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/204334
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
diff --git a/src/tint/cmd/fuzz/wgsl/main_fuzz.cc b/src/tint/cmd/fuzz/wgsl/main_fuzz.cc
index 5f8c662..7aea99e 100644
--- a/src/tint/cmd/fuzz/wgsl/main_fuzz.cc
+++ b/src/tint/cmd/fuzz/wgsl/main_fuzz.cc
@@ -137,5 +137,11 @@
options.dump = opt_dump.value.value_or(false);
print_dxc_path_found(options.dxc);
+#if defined(TINT_ASAN_ENABLED) && !defined(NDEBUG)
+ // TODO(crbug.com/352402877): Avoid DXC timeouts on asan + debug fuzzer builds
+ std::cout << "DXC validation disabled in asan + debug builds" << std::endl;
+ options.dxc = "";
+#endif
+
return 0;
}