diff --git a/tools/hls-fuzzer/targets/TargetUtils.cpp b/tools/hls-fuzzer/targets/TargetUtils.cpp index cb73d90cf..5333fa942 100644 --- a/tools/hls-fuzzer/targets/TargetUtils.cpp +++ b/tools/hls-fuzzer/targets/TargetUtils.cpp @@ -88,7 +88,8 @@ trap 'rm "$file"' EXIT // Add an error limit to circumvent clang bugs where it gets stuck and speed // up reduction. os << "-I" << (dynamaticSourceRoot / "include").string() - << " -Wno-deprecated -o /dev/null -ferror-limit=1\n"; + << " -Wno-deprecated -o /dev/null -ferror-limit=1 2>&1 | tee >(cat - " + ">&5)\n"; // Invoke dynamatic. os << dynamaticPath << " --exit-on-failure <&1 | tee >(cat - >&5)\n";