From e5d479b06e74e04b3ef3108e6098424b2130cbe5 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 4 Apr 2020 12:26:57 -0400 Subject: detect an endless loop when trying to detect native libc installation closes #4810 --- src/error.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/error.cpp') diff --git a/src/error.cpp b/src/error.cpp index 76b510ecf3..0ca7d25b79 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -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)"; } -- cgit v1.2.3