mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
Error related to ThinLTO caching needs to be downgraded to a remark
This is a fix for PR #46392 (Diagnostic message (error) related to ThinLTO caching needs to be downgraded to a remark). There are diagnostic messages related to ThinLTO caching that contain the word "error", but they are really just notices/remarks for users, and they don't cause a build failure. The word "error" appearing can be confusing to users, and may even cause deeper problems. User's build system might be designed to interpret any error messages (even a benign error message as the one above) reported by the compiler as a build failure, thus causing the build to fail "needlessly". In short, the term "error" in this diagnostic is misleading at best, and may be causing build systems to fail at worst. Differential Revision: https://reviews.llvm.org/D82138
This commit is contained in:
parent
4c6c241e2d
commit
8f7a8fd1c3
@ -894,7 +894,7 @@ ThinLTOCodeGenerator::writeGeneratedObject(int count, StringRef CacheEntryPath,
|
||||
// Copy failed (could be because the CacheEntry was removed from the cache
|
||||
// in the meantime by another process), fall back and try to write down the
|
||||
// buffer to the output.
|
||||
errs() << "error: can't link or copy from cached entry '" << CacheEntryPath
|
||||
errs() << "remark: can't link or copy from cached entry '" << CacheEntryPath
|
||||
<< "' to '" << OutputPath << "'\n";
|
||||
}
|
||||
// No cache entry, just write out the buffer.
|
||||
@ -1134,7 +1134,7 @@ void ThinLTOCodeGenerator::run() {
|
||||
auto ReloadedBufferOrErr = CacheEntry.tryLoadingBuffer();
|
||||
if (auto EC = ReloadedBufferOrErr.getError()) {
|
||||
// On error, keep the preexisting buffer and print a diagnostic.
|
||||
errs() << "error: can't reload cached file '" << CacheEntryPath
|
||||
errs() << "remark: can't reload cached file '" << CacheEntryPath
|
||||
<< "': " << EC.message() << "\n";
|
||||
} else {
|
||||
OutputBuffer = std::move(*ReloadedBufferOrErr);
|
||||
|
Loading…
Reference in New Issue
Block a user