From a11afe05bf6f35cda60afec04211c9ada0edefce Mon Sep 17 00:00:00 2001 From: Bevan Weiss Date: Fri, 14 Aug 2020 14:33:06 +1000 Subject: [PATCH] MSVC changes Add support for compilation on x64 toolchain (x86 cl.exe was running out of heap space in vm.cpp) Also took the opportunity to change compile optimisation from /Ox to /O2, as /O2 provides better optimisation than does /Ox Also, we shouldn't be explicitely setting compiler tool defines (__cpp_lib_bitops), so remove that from types.h --- 3rdparty/7zlib.vcxproj | 3 +++ 3rdparty/hidapi.vcxproj | 3 +++ 3rdparty/libcurl.vcxproj | 3 +++ 3rdparty/libpng.vcxproj | 5 ++++- 3rdparty/libusb_static.vcxproj | 3 +++ 3rdparty/pnglibconf.vcxproj | 3 +++ 3rdparty/wolfssl.vcxproj | 3 +++ 3rdparty/xxhash.vcxproj | 8 +++++++- 3rdparty/yaml-cpp.vcxproj | 4 ++++ 3rdparty/zlib.vcxproj | 5 ++++- Utilities/types.h | 5 ----- asmjitsrc/asmjit.vcxproj | 4 ++++ llvm_build/llvm_build.vcxproj | 3 +++ rpcs3/GLGSRender.vcxproj | 8 +++++++- rpcs3/OpenAL.vcxproj | 4 ++++ rpcs3/VKGSRender.vcxproj | 4 ++++ rpcs3/XAudio.vcxproj | 4 ++++ rpcs3/emucore.vcxproj | 4 ++++ rpcs3/rpcs3.vcxproj | 3 +++ 19 files changed, 70 insertions(+), 9 deletions(-) diff --git a/3rdparty/7zlib.vcxproj b/3rdparty/7zlib.vcxproj index 2b1acdfbc1..ef9910de55 100644 --- a/3rdparty/7zlib.vcxproj +++ b/3rdparty/7zlib.vcxproj @@ -111,6 +111,9 @@ + + x64 + StaticLibrary diff --git a/3rdparty/hidapi.vcxproj b/3rdparty/hidapi.vcxproj index ed188b3efe..50848a2219 100644 --- a/3rdparty/hidapi.vcxproj +++ b/3rdparty/hidapi.vcxproj @@ -27,6 +27,9 @@ MultiByte + + x64 + diff --git a/3rdparty/libcurl.vcxproj b/3rdparty/libcurl.vcxproj index e1bdd0e137..6f07768d89 100644 --- a/3rdparty/libcurl.vcxproj +++ b/3rdparty/libcurl.vcxproj @@ -31,6 +31,9 @@ Unicode + + x64 + diff --git a/3rdparty/libpng.vcxproj b/3rdparty/libpng.vcxproj index 1b43cbadd8..06a396c251 100644 --- a/3rdparty/libpng.vcxproj +++ b/3rdparty/libpng.vcxproj @@ -28,6 +28,9 @@ MultiByte + + x64 + @@ -97,7 +100,7 @@ $(DisableSpecificWarnings) $(ZLibSrcDir);%(AdditionalIncludeDirectories) $(TreatWarningAsError) - Full + MaxSpeed true diff --git a/3rdparty/libusb_static.vcxproj b/3rdparty/libusb_static.vcxproj index f98f08e27f..f6b4d66b1b 100644 --- a/3rdparty/libusb_static.vcxproj +++ b/3rdparty/libusb_static.vcxproj @@ -24,6 +24,9 @@ true + + x64 + diff --git a/3rdparty/pnglibconf.vcxproj b/3rdparty/pnglibconf.vcxproj index c633292592..a8153dd663 100644 --- a/3rdparty/pnglibconf.vcxproj +++ b/3rdparty/pnglibconf.vcxproj @@ -21,6 +21,9 @@ + + x64 + diff --git a/3rdparty/wolfssl.vcxproj b/3rdparty/wolfssl.vcxproj index c90c6ac2df..97ce61259b 100644 --- a/3rdparty/wolfssl.vcxproj +++ b/3rdparty/wolfssl.vcxproj @@ -28,6 +28,9 @@ Unicode + + x64 + diff --git a/3rdparty/xxhash.vcxproj b/3rdparty/xxhash.vcxproj index 2bc39ceb00..7efc82d538 100644 --- a/3rdparty/xxhash.vcxproj +++ b/3rdparty/xxhash.vcxproj @@ -27,6 +27,9 @@ false + + x64 + @@ -41,7 +44,10 @@ - + + + MaxSpeed + diff --git a/3rdparty/yaml-cpp.vcxproj b/3rdparty/yaml-cpp.vcxproj index 6add456fb1..7fa0b0709c 100644 --- a/3rdparty/yaml-cpp.vcxproj +++ b/3rdparty/yaml-cpp.vcxproj @@ -22,6 +22,9 @@ Unicode + + x64 + @@ -40,6 +43,7 @@ Sync + MaxSpeed diff --git a/3rdparty/zlib.vcxproj b/3rdparty/zlib.vcxproj index 43bc2d2800..df1afc759c 100644 --- a/3rdparty/zlib.vcxproj +++ b/3rdparty/zlib.vcxproj @@ -31,6 +31,9 @@ + + x64 + StaticLibrary @@ -79,7 +82,7 @@ $(WarningLevel) ProgramDatabase - Full + MaxSpeed true true false diff --git a/Utilities/types.h b/Utilities/types.h index f7fd99aac8..14620dcf88 100644 --- a/Utilities/types.h +++ b/Utilities/types.h @@ -17,11 +17,6 @@ #include #include -#ifdef _MSC_VER -#ifndef __cpp_lib_bitops -#define __cpp_lib_bitops -#endif -#endif #include #ifndef __has_builtin diff --git a/asmjitsrc/asmjit.vcxproj b/asmjitsrc/asmjit.vcxproj index 17c1715f7b..f8b94cef58 100644 --- a/asmjitsrc/asmjit.vcxproj +++ b/asmjitsrc/asmjit.vcxproj @@ -96,6 +96,9 @@ Unicode + + x64 + @@ -125,6 +128,7 @@ NotUsing ASMJIT_STATIC;%(PreprocessorDefinitions) + MaxSpeed diff --git a/llvm_build/llvm_build.vcxproj b/llvm_build/llvm_build.vcxproj index 6e2e6efed8..a11f691755 100644 --- a/llvm_build/llvm_build.vcxproj +++ b/llvm_build/llvm_build.vcxproj @@ -26,6 +26,9 @@ false + + x64 + diff --git a/rpcs3/GLGSRender.vcxproj b/rpcs3/GLGSRender.vcxproj index 4b07e65067..2596ac630f 100644 --- a/rpcs3/GLGSRender.vcxproj +++ b/rpcs3/GLGSRender.vcxproj @@ -28,6 +28,9 @@ + + x64 + StaticLibrary @@ -64,6 +67,9 @@ + + MaxSpeed + @@ -105,4 +111,4 @@ - + \ No newline at end of file diff --git a/rpcs3/OpenAL.vcxproj b/rpcs3/OpenAL.vcxproj index 7a7326670a..acbbc65f7a 100644 --- a/rpcs3/OpenAL.vcxproj +++ b/rpcs3/OpenAL.vcxproj @@ -29,6 +29,9 @@ + + x64 + StaticLibrary @@ -65,6 +68,7 @@ .\3rdparty\OpenAL\include;%(AdditionalIncludeDirectories) + MaxSpeed diff --git a/rpcs3/VKGSRender.vcxproj b/rpcs3/VKGSRender.vcxproj index 3e187ed951..df6f306585 100644 --- a/rpcs3/VKGSRender.vcxproj +++ b/rpcs3/VKGSRender.vcxproj @@ -77,6 +77,9 @@ + + x64 + StaticLibrary @@ -115,6 +118,7 @@ $(VULKAN_SDK)\Include;..\Vulkan\glslang\glslang\Public;..\Vulkan\glslang;..\Vulkan\spirv-tools\include;%(AdditionalIncludeDirectories) /bigobj %(AdditionalOptions) + MaxSpeed diff --git a/rpcs3/XAudio.vcxproj b/rpcs3/XAudio.vcxproj index 96b4d68702..aa387bd815 100644 --- a/rpcs3/XAudio.vcxproj +++ b/rpcs3/XAudio.vcxproj @@ -28,6 +28,9 @@ + + x64 + StaticLibrary @@ -64,6 +67,7 @@ ..\3rdparty\XAudio2Redist\include;%(AdditionalIncludeDirectories) + MaxSpeed diff --git a/rpcs3/emucore.vcxproj b/rpcs3/emucore.vcxproj index b810d8f13e..291a777d6f 100644 --- a/rpcs3/emucore.vcxproj +++ b/rpcs3/emucore.vcxproj @@ -28,6 +28,9 @@ + + x64 + StaticLibrary @@ -62,6 +65,7 @@ Use ..\3rdparty\libusb\libusb;..\3rdparty\zlib;..\llvm\include;..\llvm_build\include;$(VULKAN_SDK)\Include + MaxSpeed %windir%\sysnative\cmd.exe /c "$(SolutionDir)\Utilities\git-version-gen.cmd" diff --git a/rpcs3/rpcs3.vcxproj b/rpcs3/rpcs3.vcxproj index 8affbb182e..399be6a6a2 100644 --- a/rpcs3/rpcs3.vcxproj +++ b/rpcs3/rpcs3.vcxproj @@ -25,6 +25,9 @@ + + x64 + release\