Use '-std=c++0x' for older gcc that support it

This commit is contained in:
Vinnie Falco
2013-08-10 00:13:58 -07:00
parent f78e50fe58
commit 2087c2aeb7

View File

@@ -190,6 +190,8 @@ env.Append(CXXFLAGS = ['-frtti'])
if (int(GCC_VERSION[0]) > 4 or (int(GCC_VERSION[0]) == 4 and int(GCC_VERSION[1]) >= 7)): if (int(GCC_VERSION[0]) > 4 or (int(GCC_VERSION[0]) == 4 and int(GCC_VERSION[1]) >= 7)):
env.Append(CXXFLAGS = ['-std=c++11']) env.Append(CXXFLAGS = ['-std=c++11'])
elif (int(GCC_VERSION[0]) == 4 and int(GCC_VERSION[1]) == 6):
env.Append(CXXFLAGS = ['-std=c++0x'])
# FreeBSD doesn't support O_DSYNC # FreeBSD doesn't support O_DSYNC
if FreeBSD: if FreeBSD: