Skip to content

Commit 4d0f2b7

Browse files
powerboat9P-E-P
authored andcommitted
Update C++ version check in rust-lang.cc
gcc/rust/ChangeLog: * rust-lang.cc: Move version check from C++11 to C++14. Signed-off-by: Owen Avery <[email protected]>
1 parent 05ce24e commit 4d0f2b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gcc/rust/rust-lang.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@
5151
// FIXME: test saving intellisense
5252
#include "options.h"
5353

54-
// version check to stop compiling if c++ isn't c++11 or higher
55-
#if __cplusplus < 201103
54+
// version check to stop compiling if c++ isn't c++14 or higher
55+
#if __cplusplus < 201402
5656
#error \
57-
"GCC Rust frontend requires C++11 or higher. You can compile the g++ frontend first and then compile the Rust frontend using that."
57+
"GCC Rust frontend requires C++14 or higher. You can compile the g++ frontend first and then compile the Rust frontend using that."
5858
#endif
5959
// TODO: is this best way to do it? Is it allowed? (should be)
6060

0 commit comments

Comments
 (0)