summaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index fbf1f11d85b..41cd565538a 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -636,7 +636,10 @@ extern int vsnprintf(char *, size_t, const char *, va_list);
#include <dlfcn.h>
#endif
+/* Do not introduce a gmp.h dependency on the build system. */
+#ifndef GENERATOR_FILE
#include <gmp.h>
+#endif
/* Get libiberty declarations. */
#include "libiberty.h"