clover: use the unified check for c++11 instead of the gcc version number
So far clover based its test for compiler support on the version of gcc, while in reality support for c++11 is required. This patch replaces the version check by the check unified for all modules that require c++11. Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:

committed by
Emil Velikov

parent
8f18528cea
commit
6905d005ef
@@ -2294,8 +2294,8 @@ if test "x$enable_opencl" = xyes; then
|
|||||||
AC_MSG_ERROR([cannot enable OpenCL without Gallium])
|
AC_MSG_ERROR([cannot enable OpenCL without Gallium])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test $GCC_VERSION_MAJOR -lt 4 -o $GCC_VERSION_MAJOR -eq 4 -a $GCC_VERSION_MINOR -lt 7; then
|
if test "x$HAVE_CXX11" != "xyes"; then
|
||||||
AC_MSG_ERROR([gcc >= 4.7 is required to build clover])
|
AC_MSG_ERROR([clover requires c++11 support])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x$have_libclc" = xno; then
|
if test "x$have_libclc" = xno; then
|
||||||
|
@@ -31,14 +31,14 @@ endif
|
|||||||
noinst_LTLIBRARIES = libclover.la libcltgsi.la libclllvm.la
|
noinst_LTLIBRARIES = libclover.la libcltgsi.la libclllvm.la
|
||||||
|
|
||||||
libcltgsi_la_CXXFLAGS = \
|
libcltgsi_la_CXXFLAGS = \
|
||||||
-std=c++11 \
|
$(CXX11_CXXFLAGS) \
|
||||||
$(CLOVER_STD_OVERRIDE) \
|
$(CLOVER_STD_OVERRIDE) \
|
||||||
$(VISIBILITY_CXXFLAGS)
|
$(VISIBILITY_CXXFLAGS)
|
||||||
|
|
||||||
libcltgsi_la_SOURCES = $(TGSI_SOURCES)
|
libcltgsi_la_SOURCES = $(TGSI_SOURCES)
|
||||||
|
|
||||||
libclllvm_la_CXXFLAGS = \
|
libclllvm_la_CXXFLAGS = \
|
||||||
-std=c++11 \
|
$(CXX11_CXXFLAGS) \
|
||||||
$(VISIBILITY_CXXFLAGS) \
|
$(VISIBILITY_CXXFLAGS) \
|
||||||
$(LLVM_CXXFLAGS) \
|
$(LLVM_CXXFLAGS) \
|
||||||
$(CLOVER_STD_OVERRIDE) \
|
$(CLOVER_STD_OVERRIDE) \
|
||||||
@@ -51,7 +51,7 @@ libclllvm_la_CXXFLAGS = \
|
|||||||
libclllvm_la_SOURCES = $(LLVM_SOURCES)
|
libclllvm_la_SOURCES = $(LLVM_SOURCES)
|
||||||
|
|
||||||
libclover_la_CXXFLAGS = \
|
libclover_la_CXXFLAGS = \
|
||||||
-std=c++11 \
|
$(CXX11_CXXFLAGS) \
|
||||||
$(CLOVER_STD_OVERRIDE) \
|
$(CLOVER_STD_OVERRIDE) \
|
||||||
$(VISIBILITY_CXXFLAGS)
|
$(VISIBILITY_CXXFLAGS)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user