diff --git a/plugins/GSdx/CMakeLists.txt b/plugins/GSdx/CMakeLists.txt index f37ef8ebf8..c8fe9e0e2d 100644 --- a/plugins/GSdx/CMakeLists.txt +++ b/plugins/GSdx/CMakeLists.txt @@ -19,7 +19,6 @@ set(CommonFlags -Wno-unknown-pragmas -Wno-parentheses -Wunused-variable # __dummy variable need to be investigated - -fabi-version=6 ) set(OptimizationFlags @@ -27,44 +26,36 @@ set(OptimizationFlags -DNDEBUG ) -#Clang doesn't support a few common flags that GCC does. -if(NOT USE_CLANG AND _M_X86_32) - set(GSdxFinalFlags - ${GSdxFinalFlags} ${CommonFlags} -mpreferred-stack-boundary=2 - ) -endif() # Debug - Build if(CMAKE_BUILD_TYPE STREQUAL Debug) - set(GSdxFinalFlags - ${GSdxFinalFlags} ${CommonFlags} -D_DEBUG -g -Wall - ) + set(GSdxFinalFlags ${GSdxFinalFlags} ${CommonFlags} -D_DEBUG -g -Wall) endif() # Devel - Build if(CMAKE_BUILD_TYPE STREQUAL Devel) - set(GSdxFinalFlags - ${GSdxFinalFlags} ${CommonFlags} ${OptimizationFlags} -D_DEVEL -g - ) + set(GSdxFinalFlags ${GSdxFinalFlags} ${CommonFlags} ${OptimizationFlags} -D_DEVEL -g) endif() # Release - Build if(CMAKE_BUILD_TYPE STREQUAL Release) - set(GSdxFinalFlags - ${GSdxFinalFlags} ${CommonFlags} ${OptimizationFlags} -W - ) + set(GSdxFinalFlags ${GSdxFinalFlags} ${CommonFlags} ${OptimizationFlags} -W) endif() if(XDG_STD) - set(GSdxFinalFlags - ${GSdxFinalFlags} -DXDG_STD - ) + set(GSdxFinalFlags ${GSdxFinalFlags} -DXDG_STD) endif() if(GLES_API AND GLESV2_FOUND) - set(GSdxFinalFlags - ${GSdxFinalFlags} -DENABLE_GLES - ) + set(GSdxFinalFlags ${GSdxFinalFlags} -DENABLE_GLES) +endif() + +#Clang doesn't support a few common flags that GCC does. +if(NOT USE_CLANG) + set(GSdxFinalFlags ${GSdxFinalFlags} -fabi-version=6) + if (_M_X86_32) + set(GSdxFinalFlags ${GSdxFinalFlags} -mpreferred-stack-boundary=2) + endif() endif() set(GSdxSources @@ -87,7 +78,7 @@ set(GSdxSources GSCrc.cpp GSDevice.cpp GSDeviceOGL.cpp - GSDeviceSW.cpp + GSDeviceSW.cpp GSDeviceNull.cpp GSDirtyRect.cpp GSDrawScanline.cpp @@ -126,7 +117,7 @@ set(GSdxSources GSTextureFXOGL.cpp GSTextureOGL.cpp GSTextureNull.cpp - GSTextureSW.cpp + GSTextureSW.cpp GSThread.cpp GSUtil.cpp GSVector.cpp @@ -243,7 +234,7 @@ add_pcsx2_plugin(${Output} "${GSdxFinalSources}" "${GSdxFinalLibs}" "${GSdxFinal ################################### Replay Loader if(BUILD_REPLAY_LOADERS) - set(Replay pcsx2_GSReplayLoader) + set(Replay pcsx2_GSReplayLoader) set(GSdxReplayLoaderFinalSources ${GSdxFinalSources} linux_replay.cpp diff --git a/plugins/GSdx/stdafx.h b/plugins/GSdx/stdafx.h index 52e564eee1..2467405379 100644 --- a/plugins/GSdx/stdafx.h +++ b/plugins/GSdx/stdafx.h @@ -273,7 +273,7 @@ struct aligned_free_second {template void operator()(T& p) {_aligned_fr #endif // sse -#ifndef _WINDOWS +#ifdef __GNUC__ // Convert gcc see define into GSdx (windows) define #if defined(__AVX2__) #define _M_SSE 0x501