Skip to content

Commit ba70da0

Browse files
committed
[Frontend] Add missing diagnostics component to the default translations path
1 parent 8461047 commit ba70da0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,11 @@ void CompilerInvocation::setMainExecutablePath(StringRef Path) {
6363
"diagnostics");
6464
DiagnosticOpts.DiagnosticDocumentationPath = std::string(DiagnosticDocsPath.str());
6565

66-
// Compute the path of the YAML diagnostic messages directory files
67-
// in the toolchain.
66+
// Compute the path to the diagnostic translations in the toolchain/build.
6867
llvm::SmallString<128> DiagnosticMessagesDir(Path);
6968
llvm::sys::path::remove_filename(DiagnosticMessagesDir); // Remove /swift
7069
llvm::sys::path::remove_filename(DiagnosticMessagesDir); // Remove /bin
71-
llvm::sys::path::append(DiagnosticMessagesDir, "share", "swift");
70+
llvm::sys::path::append(DiagnosticMessagesDir, "share", "swift", "diagnostics");
7271
DiagnosticOpts.LocalizationPath = std::string(DiagnosticMessagesDir.str());
7372
}
7473

0 commit comments

Comments
 (0)