Skip to content

Commit 1e00fcf

Browse files
committed
Default to C++14 as language standard accepted by the C++ front-end on Windows
1 parent 61ec7fc commit 1e00fcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/util/config.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,11 @@ configt::cppt::cpp_standardt configt::cppt::default_cpp_standard()
663663
// g++ 6.3 uses gnu++14
664664
// g++ 5.4 uses gnu++98
665665
// clang 6.0 uses c++14
666+
#if defined _WIN32
667+
return cpp_standardt::CPP14;
668+
#else
666669
return cpp_standardt::CPP98;
670+
#endif
667671
}
668672

669673
void configt::set_arch(const irep_idt &arch)

0 commit comments

Comments
 (0)