On Fri, Apr 15, 2016 at 12:10 PM, Chuck Atkins <chuck.atk...@kitware.com> wrote: >> > As LLVM_CXXFLAGS / `llvm-config --cxxflags` already includes std=c++11 >> >> Yes, I saw that and considered going that direction, but wasn’t sure if we >> should rely on llvm setting the language version required. > > > Shouldn't you do both? Use LLVM_CXXFLAGS since swr is C++ code including and > using the LLVM C++ API. Add stc=c++11 since swr itself is using C++ 11 > features, regardless of llvm's requirements. This way, each piece is > defining it's own requirements. Just relying on LLVM_CXXFLGS is essentially > assuming that LLVM knows how swr needs to be built. :-/ . The end result > may be a duplicate std=c++11 entry but it's really more coincidence. LLVM > could decide that they want to abandon C++11 and not use it (I know, > extremely unlikely) but swr would still need it regardless.
Should be fun when LLVM decides to move to c++14 :) Tim, thanks a lot for taking care of this -- I'm no expert on the mesa build system, so I'll let others do the actual review bit of it. -ilia _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev