Browse Source

Merge topic 'bootstrap-std'

4a275f63 bootstrap: Require compiler mode aware of C++11

Acked-by: Kitware Robot <[email protected]>
Merge-request: !1200
Daniel Pfeifer 8 years ago
parent
commit
5cac887297
1 changed files with 6 additions and 2 deletions
  1. 6 2
      bootstrap

+ 6 - 2
bootstrap

@@ -988,8 +988,12 @@ echo '
 #include <iostream>
 #include <memory>
 
-#if __cplusplus >= 201103L && defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
-#error "SunPro <= 5.13 C++ 11 mode not supported due to bug in move semantics."
+#if __cplusplus < 201103L
+#error "Compiler is not in a mode aware of C++11."
+#endif
+
+#if defined(__SUNPRO_CC) && __SUNPRO_CC < 0x5140
+#error "SunPro <= 5.13 mode not supported due to bug in move semantics."
 #endif
 
 class Class