summaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-20 14:15:23 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-20 14:30:01 (GMT)
commitba315f2035bc048068b36ae22cc3e2c4bbc19d21 (patch)
treeffaa046edb0ae007f8f9da63811e75da6ac0d21a /bootstrap
parent5ffb2dbff65bdd5db713ba0c177cecc122cac0d8 (diff)
downloadCMake-ba315f2035bc048068b36ae22cc3e2c4bbc19d21.zip
CMake-ba315f2035bc048068b36ae22cc3e2c4bbc19d21.tar.gz
CMake-ba315f2035bc048068b36ae22cc3e2c4bbc19d21.tar.bz2
bootstrap: Require GCC 4.9 or higher on HP-UX
Revise for future removal of the early rejection checks on HP-UX. Our code may now work with GCC 4.9 on HP-UX when manually using `env CXXFLAGS=-D_GLIBCXX_USE_C99` to make the C++11 `std::to_string` available on this platform. However, without nightly testing we cannot officially enable support for the platform. Issue: #17137 Co-Author: Earle Lowe <elowe@elowe.com>
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap8
1 files changed, 8 insertions, 0 deletions
diff --git a/bootstrap b/bootstrap
index ded4637..4f387bc 100755
--- a/bootstrap
+++ b/bootstrap
@@ -1059,6 +1059,10 @@ echo '
#error "On Solaris we need C99."
#endif
+#if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 409)
+#error "On HP-UX we need GCC 4.9 or higher."
+#endif
+
#include <stdio.h>
int main(int argc, char* argv[])
@@ -1127,6 +1131,10 @@ echo '
#error "SunPro <= 5.13 mode not supported due to bug in move semantics."
#endif
+#if defined(__hpux) && !(defined(__GNUC__) && ((__GNUC__ * 100) + __GNUC_MINOR__) >= 409)
+#error "On HP-UX we need GCC 4.9 or higher."
+#endif
+
#if __cplusplus > 201103L
#include <iterator>
int check_cxx14()