From ba315f2035bc048068b36ae22cc3e2c4bbc19d21 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 20 Sep 2019 10:15:23 -0400 Subject: 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 --- bootstrap | 8 ++++++++ 1 file changed, 8 insertions(+) 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 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 int check_cxx14() -- cgit v0.12