[Beignet] [PATCH 1/2] CMakeLists.txt enable custom C/CXXFLAGS

Steven Newbury steve at snewbury.org.uk
Wed May 8 07:38:35 PDT 2013


On Wed, 2013-05-08 at 14:00 +0800, Zhigang Gong wrote:
> LGTM. Pushed, thanks for the patch.
> 
> On Tue, May 07, 2013 at 09:57:36PM +0200, Mario Kicherer wrote:
> > 
> > Signed-off-by: Mario Kicherer <dev at kicherer.org>
> > ---
> >  CMakeLists.txt | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/CMakeLists.txt b/CMakeLists.txt
> > index 4b402ee..6d0d291 100644
> > --- a/CMakeLists.txt
> > +++ b/CMakeLists.txt
> > @@ -55,8 +55,8 @@ ELSE (USE_FULSIM)
> >    ADD_DEFINITIONS(-DUSE_FULSIM=0)
> >  ENDIF (USE_FULSIM)
> >  
> > -SET(CMAKE_CXX_FLAGS "-Wall -Wno-invalid-offsetof -mfpmath=sse -fno-rtti -Wcast-align -std=c++0x -msse2 -msse3 -mssse3 -msse4.1 ")
> > -SET(CMAKE_C_FLAGS "-Wall -mfpmath=sse -msse2 -Wcast-align -msse2 -msse3 -mssse3 -msse4.1")
> > +SET(CMAKE_CXX_FLAGS "-Wall -Wno-invalid-offsetof -mfpmath=sse -fno-rtti -Wcast-align -std=c++0x -msse2 -msse3 -mssse3 -msse4.1 ${CMAKE_CXX_FLAGS}")
> > +SET(CMAKE_C_FLAGS "-Wall -mfpmath=sse -msse2 -Wcast-align -msse2 -msse3 -mssse3 -msse4.1 ${CMAKE_C_FLAGS}")
> >  
> >  # Front end stuff we need
> >  #INCLUDE(CMake/FindLLVM.cmake)
> > -- 
> > 1.8.1.5
There are a few other places where this needs fixing. I'll drop this
chunk and send it later today, hopefully.




More information about the Beignet mailing list