Commit acb9ec8b authored by Henry Weller's avatar Henry Weller
Browse files

wmake/rules: Add -std=c++0x to formally enable support for of C++11 features

The c++0x is used rather than c++11 to support gcc-4.5.?
parent 33c99cc9
......@@ -25,6 +25,7 @@ INCLUDE_DIRECTORIES(
)
ADD_DEFINITIONS(
-std=c++0x
-DWM_$ENV{WM_PRECISION_OPTION}
-DWM_LABEL_SIZE=$ENV{WM_LABEL_SIZE}
)
......
......@@ -25,6 +25,7 @@ INCLUDE_DIRECTORIES(
)
ADD_DEFINITIONS(
-std=c++0x
-DWM_$ENV{WM_PRECISION_OPTION}
-DWM_LABEL_SIZE=$ENV{WM_LABEL_SIZE}
)
......
......@@ -5,7 +5,7 @@ c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-para
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-tautological-undefined-compare -Wno-shift-negative-value
CC = clang++ -m64
CC = clang++ -std=c++0x -m64
include $(RULES)/c++$(WM_COMPILE_OPTION)
......
......@@ -5,7 +5,7 @@ c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-para
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds
CC = g++ -m64
CC = g++ -std=c++0x -m64
include $(RULES)/c++$(WM_COMPILE_OPTION)
......
......@@ -5,7 +5,7 @@ c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-para
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds
CC = g++
CC = g++ -std=c++0x
include $(RULES)/c++$(WM_COMPILE_OPTION)
......
......@@ -5,7 +5,7 @@ c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-para
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedef -Wno-tautological-undefined-compare -Wno-shift-negative-value
CC = clang++ -m32
CC = clang++ -std=c++0x -m32
include $(RULES)/c++$(WM_COMPILE_OPTION)
......
......@@ -5,7 +5,7 @@ c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-para
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds
CC = g++ -m32
CC = g++ -std=c++0x -m32
include $(RULES)/c++$(WM_COMPILE_OPTION)
......
......@@ -5,7 +5,7 @@ c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-para
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds
CC = g++
CC = g++ -std=c++0x
include $(RULES)/c++$(WM_COMPILE_OPTION)
......
......@@ -6,7 +6,7 @@ c++WARN = -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invali
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -diag-disable 1224,2026,2305
CC = icpc
CC = icpc -std=c++0x
include $(RULES)/c++$(WM_COMPILE_OPTION)
......
......@@ -5,7 +5,7 @@ c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-para
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds
CC = g++ -m64 -mcpu=power5+
CC = g++ -std=c++0x -m64 -mcpu=power5+
include $(RULES)/c++$(WM_COMPILE_OPTION)
......
......@@ -5,7 +5,7 @@ c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-para
# Suppress some warnings for flex++ and CGAL
c++LESSWARN = -Wno-old-style-cast -Wno-unused-local-typedefs -Wno-array-bounds
CC = g++ -m64 -mcpu=power8
CC = g++ -std=c++0x -m64 -mcpu=power8
include $(RULES)/c++$(WM_COMPILE_OPTION)
......
......@@ -5,7 +5,7 @@ c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-para
# Suppress some warnings for flex++ and CGAL
c++LESSWARN =
CC = g++ -m64
CC = g++ -std=c++0x -m64
include $(RULES)/c++$(WM_COMPILE_OPTION)
......
......@@ -5,7 +5,7 @@ c++WARN = -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-para
# Suppress some warnings for flex++ and CGAL
c++LESSWARN =
CC = g++
CC = g++ -std=c++0x
include $(RULES)/c++$(WM_COMPILE_OPTION)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment