Without it the compiler will barf at us with dozens of errors like the following.
In file included from llvm/codegen/bitcode.cpp:34:0: ./llvm/codegen.hpp:52:22: error: ‘<::’ cannot begin a template-argument list [-fpermissive] ./llvm/codegen.hpp:52:22: note: ‘<:’ is an alternate spelling for ‘[’. Insert whitespace between ‘<’ and ‘::’ ./llvm/codegen.hpp:52:22: note: (if you use ‘-fpermissive’ G++ will accept your code) Note: things seems to build fine on my system, although the Travis-CI instance [1] is less forgiving. I'm not too happy on the patch hence the HACK - suggestions are greatly appreciated. Cc: Francisco Jerez <[email protected]> Cc: Jan Vesely <[email protected]> Cc: Aaron Watry <[email protected]> [1] https://travis-ci.org/evelikov/Mesa/jobs/223222840 --- src/gallium/state_trackers/clover/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/state_trackers/clover/Makefile.am b/src/gallium/state_trackers/clover/Makefile.am index 321393536dc..c39a3c065d7 100644 --- a/src/gallium/state_trackers/clover/Makefile.am +++ b/src/gallium/state_trackers/clover/Makefile.am @@ -39,6 +39,7 @@ libcltgsi_la_SOURCES = $(TGSI_SOURCES) libclllvm_la_CXXFLAGS = \ -std=c++11 \ + -fpermissive \ $(VISIBILITY_CXXFLAGS) \ $(LLVM_CXXFLAGS) \ $(CLOVER_STD_OVERRIDE) \ -- 2.12.2 _______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
