detect an endless loop when trying to detect native libc installation

closes #4810
This commit is contained in:
Andrew Kelley
2020-04-04 12:26:57 -04:00
parent 52db13738b
commit e5d479b06e
4 changed files with 23 additions and 0 deletions

View File

@@ -85,6 +85,7 @@ const char *err_str(Error err) {
case ErrorInvalidOperatingSystemVersion: return "invalid operating system version";
case ErrorUnknownClangOption: return "unknown Clang option";
case ErrorNestedResponseFile: return "nested response file";
case ErrorZigIsTheCCompiler: return "Zig was not provided with libc installation information, and so it does not know where the libc paths are on the system. Zig attempted to use the system C compiler to find out where the libc paths are, but discovered that Zig is being used as the system C compiler.";
}
return "(invalid error)";
}