diff options
author | Brad King <brad.king@kitware.com> | 2019-09-20 14:15:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-09-20 14:30:01 (GMT) |
commit | ba315f2035bc048068b36ae22cc3e2c4bbc19d21 (patch) | |
tree | ffaa046edb0ae007f8f9da63811e75da6ac0d21a /bootstrap | |
parent | 5ffb2dbff65bdd5db713ba0c177cecc122cac0d8 (diff) | |
download | CMake-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-x | bootstrap | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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() |