-
Notifications
You must be signed in to change notification settings - Fork 97
C++14 #236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
C++14 #236
Changes from 5 commits
db152cf
dd0e0d6
dab80c8
84c8d5e
d7d458f
1f8f209
1a9df5a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -217,18 +217,11 @@ AC_PROG_CXX | |
| if test -z "$CXX"; then | ||
| AC_MSG_ERROR([A c++ compiler is required to build BZFlag]) | ||
| fi | ||
| AX_CXX_COMPILE_STDCXX_0X | ||
| if test "x$ax_cv_cxx_compile_cxx0x_native" != xyes; then | ||
| if test "x$ax_cv_cxx_compile_cxx0x_cxx" = xyes; then | ||
| CXXFLAGS="$CXXFLAGS -std=c++0x" | ||
| user_CXXFLAGS="$user_CXXFLAGS -std=c++0x" # for --enable-debug | ||
| elif test "x$ax_cv_cxx_compile_cxx0x_gxx" = xyes; then | ||
| CXXFLAGS="$CXXFLAGS -std=gnu++0x" | ||
| user_CXXFLAGS="$user_CXXFLAGS -std=gnu++0x" # for --enable-debug | ||
| else | ||
| AC_MSG_ERROR([A c++ compiler with C++0x support is required to build BZFlag]) | ||
| fi | ||
| fi | ||
|
|
||
| # C++14 is the minimum standard. C++17 isn't widely available | ||
| #AX_CXX_COMPILE_STDCXX([11], [noext]) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we're moving to C++14 being the new minimum, do we need C++11 commented out?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I left it for comparison but I’m happy to remove it.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't feel strongly either way about this, I was more so curious about its purpose
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was there in the first place because I wanted to verify that it compiled that way (C++11) vs the old config as a sanity check. As evidenced by the branch name, I intended to go all the way to C++17, but I found the Mac compiler (at least) has insufficient C++17 support). At one time I had flags for all 3 versions. As I tested, I dropped down to just the one. Say the word and this comment is gone. |
||
| AX_CXX_COMPILE_STDCXX([14], [noext]) | ||
| #AX_CXX_COMPILE_STDCXX([17], [noext], [optional]) | ||
| AC_PROG_CC | ||
| AC_PROG_LN_S | ||
| AC_CHECK_PROG(AR, ar, ar) | ||
|
|
@@ -531,13 +524,6 @@ else | |
| fi | ||
|
|
||
| AC_LANG(C++) | ||
| AC_CHECK_TYPES([std::shared_ptr<int>], | ||
| [# BZFlag expects std::shared_ptr support by default], | ||
| [AC_CHECK_TYPES([[std::tr1::shared_ptr<int>]], | ||
| AC_DEFINE([USE_TR1], [1], [Define to 1 to use C++0X TR1]), | ||
| AC_MSG_ERROR([[The C++11 std::shared_ptr type is required to build BZFlag]]), | ||
| [[#include <tr1/memory>]])], | ||
| [#include <memory>]) | ||
|
|
||
| have_gl=yes | ||
| savedLIBS=$LIBS | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.