mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 11:05:54 +00:00
Use '-std=c++0x' for older gcc that support it
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user