aboutsummaryrefslogtreecommitdiff
path: root/src/error.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-04-04 12:26:57 -0400
committerAndrew Kelley <andrew@ziglang.org>2020-04-04 15:03:22 -0400
commite5d479b06e74e04b3ef3108e6098424b2130cbe5 (patch)
tree6e13e6db93f55d9cac22734b98ab6d71d742db7b /src/error.cpp
parent52db13738b3fca0ad5d83476e584be1d61a1428f (diff)
downloadzig-e5d479b06e74e04b3ef3108e6098424b2130cbe5.tar.gz
zig-e5d479b06e74e04b3ef3108e6098424b2130cbe5.zip
detect an endless loop when trying to detect native libc installation
closes #4810
Diffstat (limited to 'src/error.cpp')
-rw-r--r--src/error.cpp1
1 files changed, 1 insertions, 0 deletions
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)";
}