From 12c55bdfa9f649b32ff297b89de6d373ba71f871 Mon Sep 17 00:00:00 2001 From: CamilleLaVey Date: Sat, 5 Sep 2026 00:11:59 -0400 Subject: [PATCH] Windows final boss --- externals/CMakeLists.txt | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index dfa83806a6..a211b7f013 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt @@ -202,6 +202,9 @@ if (ENABLE_RESHADE) set(RESHADEFX_SHIM_DIR ${CMAKE_CURRENT_BINARY_DIR}/reshadefx_shim) file(WRITE ${RESHADEFX_SHIM_DIR}/spirv.hpp "#include \n") file(WRITE ${RESHADEFX_SHIM_DIR}/GLSL.std.450.h "#include \n") + if (APPLE) + file(WRITE ${RESHADEFX_SHIM_DIR}/malloc.h "#include \n#include \n") + endif() add_library(reshadefx STATIC ${reshade_SOURCE_DIR}/source/effect_codegen_spirv.cpp @@ -218,9 +221,17 @@ if (ENABLE_RESHADE) target_link_libraries(reshadefx PUBLIC SPIRV-Headers::SPIRV-Headers) if (NOT MSVC) - target_compile_options(reshadefx PRIVATE -w) + target_compile_options(reshadefx PRIVATE -w -fno-char8_t) else() - target_compile_options(reshadefx PRIVATE /w) + target_compile_options(reshadefx PRIVATE /w /Zc:char8_t-) + endif() + + if (WIN32) + if (NOT MSVC) + target_compile_options(reshadefx PRIVATE -include share.h) + else() + target_compile_options(reshadefx PRIVATE /FIshare.h) + endif() endif() if (NOT TARGET reshadefx::reshadefx)