"option '-fmodules-validate-once-per-build-session' requires "
"'-fbuild-session-timestamp=<seconds since Epoch>'">;
-def note_drv_invoking_fallback : Note<"falling back to %0">;
+def warn_drv_invoking_fallback : Warning<"falling back to %0">,
+ InGroup<DiagGroup<"fallback">>;
}
*ExecutionFailed = false;
const Driver &D = getCreator().getToolChain().getDriver();
- D.Diag(diag::note_drv_invoking_fallback).setForceEmit()
- << Fallback->getExecutable();
+ D.Diag(diag::warn_drv_invoking_fallback) << Fallback->getExecutable();
int SecondaryStatus = Fallback->Execute(Redirects, ErrMsg, ExecutionFailed);
return SecondaryStatus;
// P-NOT: "cl.exe"
// RUN: not %clang_cl /fallback /c -- %s 2>&1 | \
-// RUN: FileCheck -check-prefix=ErrNote %s
-// ErrNote: note: falling back to {{.*}}cl.exe
+// RUN: FileCheck -check-prefix=ErrWarn %s
+// ErrWarn: warning: falling back to {{.*}}cl.exe
#error "This fails to compile."