@@ -45,7 +45,6 @@ allconfigs = noioconfigs + ["-DMPACK_STDIO=1"]
4545debugflags = ["-DDEBUG" , "-O0" ]
4646releaseflags = ["-Os" ]
4747cflags = ["-std=c99" , "-Wc++-compat" ]
48- cxxflags = ["-xc++" , "-std=c++98" ]
4948
5049
5150# Functions to add a variant build. One variant build will build and run the
@@ -98,11 +97,17 @@ if ARGUMENTS.get('all'):
9897 AddBuilds ("embed-node" , ["-DMPACK_NODE=1" ] + cflags , [])
9998
10099 # miscellaneous test builds
101- AddBuilds ("cxx" , allfeatures + allconfigs + cxxflags , ["-lstdc++" ])
100+ AddBuilds ("cxx" , allfeatures + allconfigs + [ "-xc++" , "-std=c++98" ] , ["-lstdc++" ])
102101 AddBuilds ("notrack" , ["-DMPACK_NO_TRACKING=1" ] + allfeatures + allconfigs + cflags , [])
103102 AddBuilds ("realloc" , allfeatures + allconfigs + debugflags + cflags + ["-DMPACK_REALLOC=test_realloc" ], [])
104103
105- # 32-bit builds (note Travis-CI doesn't support multilib)
104+ # Travis-CI currently only has GCC 4.6 and Clang 3.4, doesn't properly support these options
105+ if 'TRAVIS' not in env :
106+ AddBuilds ("c11" , allfeatures + allconfigs + ["-std=c11" , "-Wc++-compat" ], [])
107+ AddBuilds ("cxx11" , allfeatures + allconfigs + ["-xc++" , "-std=c++11" ], ["-lstdc++" ])
108+ AddBuilds ("cxx14" , allfeatures + allconfigs + ["-xc++" , "-std=c++14" ], ["-lstdc++" ])
109+
110+ # 32-bit builds (Travis-CI doesn't support multilib)
106111 if 'TRAVIS' not in env and '64' in platform .architecture ()[0 ]:
107112 AddBuilds ("32" , allfeatures + allconfigs + cflags + ["-m32" ], ["-m32" ])
108- AddBuilds ("cxx -32" , allfeatures + allconfigs + cxxflags + ["-m32" ], ["-m32" , "-lstdc++" ])
113+ AddBuilds ("cxx11 -32" , allfeatures + allconfigs + [ "-xc++" , "-std=c++11" ] + ["-m32" ], ["-m32" , "-lstdc++" ])
0 commit comments