aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCaio Oliveira <caiooliveirafarias0@gmail.com>2025-10-27 20:50:16 +0100
committercrueter <crueter@eden-emu.dev>2025-10-27 20:50:16 +0100
commit8fa36a7737e3fe1a53029dabff62adc827a56630 (patch)
tree0b92f20b841651c624a3be6a8f3e1ffcc32a565c /src
parent07b09b3849884ebff5f82a3987f7d6ca025eac95 (diff)
nuke: Goodbye PCH, you will not be missed (#2821)
Signed-off-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2821 Reviewed-by: crueter <crueter@eden-emu.dev> Co-authored-by: Caio Oliveira <caiooliveirafarias0@gmail.com> Co-committed-by: Caio Oliveira <caiooliveirafarias0@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt3
-rw-r--r--src/audio_core/CMakeLists.txt5
-rw-r--r--src/audio_core/precompiled_headers.h6
-rw-r--r--src/common/CMakeLists.txt6
-rw-r--r--src/common/common_precompiled_headers.h14
-rw-r--r--src/common/precompiled_headers.h6
-rw-r--r--src/core/CMakeLists.txt6
-rw-r--r--src/core/precompiled_headers.h11
-rw-r--r--src/dedicated_room/CMakeLists.txt5
-rw-r--r--src/dedicated_room/precompiled_headers.h6
-rw-r--r--src/dynarmic/CMakeLists.txt2
-rw-r--r--src/dynarmic/src/dynarmic/CMakeLists.txt12
-rw-r--r--src/hid_core/CMakeLists.txt5
-rw-r--r--src/hid_core/precompiled_headers.h6
-rw-r--r--src/input_common/CMakeLists.txt5
-rw-r--r--src/input_common/precompiled_headers.h6
-rw-r--r--src/network/CMakeLists.txt5
-rw-r--r--src/network/precompiled_headers.h6
-rw-r--r--src/shader_recompiler/CMakeLists.txt5
-rw-r--r--src/shader_recompiler/precompiled_headers.h7
-rw-r--r--src/tests/CMakeLists.txt5
-rw-r--r--src/tests/precompiled_headers.h6
-rw-r--r--src/video_core/CMakeLists.txt5
-rw-r--r--src/video_core/precompiled_headers.h6
-rw-r--r--src/web_service/CMakeLists.txt5
-rw-r--r--src/web_service/precompiled_headers.h6
-rw-r--r--src/yuzu/CMakeLists.txt5
-rw-r--r--src/yuzu/precompiled_headers.h6
-rw-r--r--src/yuzu_cmd/CMakeLists.txt5
-rw-r--r--src/yuzu_cmd/precompiled_headers.h6
30 files changed, 0 insertions, 182 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0f3c5cfd4b..3e8a822ad9 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -62,9 +62,6 @@ if (MSVC AND NOT CXX_CLANG)
/Zc:throwingNew
/GT
- # Modules
- /experimental:module- # Explicitly disable module support due to conflicts with precompiled headers.
-
# External headers diagnostics
/external:anglebrackets # Treats all headers included by #include <header>, where the header file is enclosed in angle brackets (< >), as external headers
/external:W0 # Sets the default warning level to 0 for external headers, effectively disabling warnings for them.
diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt
index c9f8af7dc3..90ee460b55 100644
--- a/src/audio_core/CMakeLists.txt
+++ b/src/audio_core/CMakeLists.txt
@@ -56,7 +56,6 @@ add_library(audio_core STATIC
out/audio_out.h
out/audio_out_system.cpp
out/audio_out_system.h
- precompiled_headers.h
renderer/audio_device.cpp
renderer/audio_device.h
renderer/audio_renderer.h
@@ -266,8 +265,4 @@ if(ANDROID)
target_compile_definitions(audio_core PUBLIC HAVE_OBOE)
endif()
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(audio_core PRIVATE precompiled_headers.h)
-endif()
-
create_target_directory_groups(audio_core)
diff --git a/src/audio_core/precompiled_headers.h b/src/audio_core/precompiled_headers.h
deleted file mode 100644
index aabae730bf..0000000000
--- a/src/audio_core/precompiled_headers.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 21f2ab4ed4..b6b2931fd9 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -36,7 +36,6 @@ add_library(
cityhash.cpp
cityhash.h
common_funcs.h
- common_precompiled_headers.h
common_types.h
concepts.h
container_hash.h
@@ -102,7 +101,6 @@ add_library(
param_package.h
parent_of_member.h
point.h
- precompiled_headers.h
quaternion.h
range_map.h
range_mutex.h
@@ -270,8 +268,4 @@ if(ANDROID)
target_link_libraries(common PRIVATE android)
endif()
-if(YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(common PRIVATE precompiled_headers.h)
-endif()
-
create_target_directory_groups(common)
diff --git a/src/common/common_precompiled_headers.h b/src/common/common_precompiled_headers.h
deleted file mode 100644
index b7e719dfd1..0000000000
--- a/src/common/common_precompiled_headers.h
+++ /dev/null
@@ -1,14 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <algorithm>
-#include <array>
-#include <chrono>
-#include <memory>
-
-#include <fmt/ranges.h>
-
-#include "common/assert.h"
-#include "common/common_types.h"
diff --git a/src/common/precompiled_headers.h b/src/common/precompiled_headers.h
deleted file mode 100644
index aabae730bf..0000000000
--- a/src/common/precompiled_headers.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 1e5ba54e7b..452e5f42e4 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -1146,7 +1146,6 @@ add_library(core STATIC
memory/dmnt_cheat_vm.h
perf_stats.cpp
perf_stats.h
- precompiled_headers.h
reporter.cpp
reporter.h
tools/freezer.cpp
@@ -1272,9 +1271,4 @@ else()
hle/service/ssl/ssl_backend_none.cpp)
endif()
-
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(core PRIVATE precompiled_headers.h)
-endif()
-
create_target_directory_groups(core)
diff --git a/src/core/precompiled_headers.h b/src/core/precompiled_headers.h
deleted file mode 100644
index 30a31001de..0000000000
--- a/src/core/precompiled_headers.h
+++ /dev/null
@@ -1,11 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include <boost/container/flat_map.hpp> // used by service.h which is heavily included
-#include <boost/intrusive/rbtree.hpp> // used by k_auto_object.h which is heavily included
-
-#include "common/common_precompiled_headers.h"
-
-#include "core/hle/kernel/k_process.h"
diff --git a/src/dedicated_room/CMakeLists.txt b/src/dedicated_room/CMakeLists.txt
index 5166329156..3e0658a1fb 100644
--- a/src/dedicated_room/CMakeLists.txt
+++ b/src/dedicated_room/CMakeLists.txt
@@ -8,7 +8,6 @@
# SPDX-License-Identifier: GPL-3.0-or-later
add_library(yuzu-room STATIC EXCLUDE_FROM_ALL
- precompiled_headers.h
yuzu_room.cpp
yuzu_room.h
yuzu_room.rc
@@ -26,8 +25,4 @@ if (MSVC)
endif()
target_link_libraries(yuzu-room PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(yuzu-room PRIVATE precompiled_headers.h)
-endif()
-
create_target_directory_groups(yuzu-room)
diff --git a/src/dedicated_room/precompiled_headers.h b/src/dedicated_room/precompiled_headers.h
deleted file mode 100644
index aabae730bf..0000000000
--- a/src/dedicated_room/precompiled_headers.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"
diff --git a/src/dynarmic/CMakeLists.txt b/src/dynarmic/CMakeLists.txt
index 725a1aa2cd..66f9b1f5cd 100644
--- a/src/dynarmic/CMakeLists.txt
+++ b/src/dynarmic/CMakeLists.txt
@@ -24,8 +24,6 @@ option(DYNARMIC_IGNORE_ASSERTS "Ignore asserts" OFF)
option(DYNARMIC_TESTS_USE_UNICORN "Enable fuzzing tests against unicorn" OFF)
CMAKE_DEPENDENT_OPTION(DYNARMIC_USE_LLVM "Support disassembly of jitted x86_64 code using LLVM" OFF "NOT YUZU_DISABLE_LLVM" OFF)
-option(DYNARMIC_USE_PRECOMPILED_HEADERS "Use precompiled headers" OFF)
-
option(DYNARMIC_INSTALL "Install dynarmic headers and CMake files" OFF)
option(DYNARMIC_USE_BUNDLED_EXTERNALS "Use all bundled externals (useful when e.g. cross-compiling)" OFF)
option(DYNARMIC_ENABLE_LTO "Enable LTO" OFF)
diff --git a/src/dynarmic/src/dynarmic/CMakeLists.txt b/src/dynarmic/src/dynarmic/CMakeLists.txt
index f21000044e..4e00e8fe0d 100644
--- a/src/dynarmic/src/dynarmic/CMakeLists.txt
+++ b/src/dynarmic/src/dynarmic/CMakeLists.txt
@@ -410,15 +410,3 @@ target_compile_definitions(dynarmic PRIVATE FMT_USE_USER_DEFINED_LITERALS=1)
if (DYNARMIC_ENABLE_LTO)
set_property(TARGET dynarmic PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()
-
-if (DYNARMIC_USE_PRECOMPILED_HEADERS)
- set(PRECOMPILED_HEADERS "$<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}/ir/ir_emitter.h>")
- if ("x86_64" IN_LIST ARCHITECTURE)
- list(PREPEND PRECOMPILED_HEADERS "$<$<COMPILE_LANGUAGE:CXX>:<xbyak/xbyak.h$<ANGLE-R>>")
- endif()
- if ("arm64" IN_LIST ARCHITECTURE)
- list(PREPEND PRECOMPILED_HEADERS "$<$<COMPILE_LANGUAGE:CXX>:<oaknut/oaknut.hpp$<ANGLE-R>>")
- endif()
- target_precompile_headers(dynarmic PRIVATE ${PRECOMPILED_HEADERS})
- set(CMAKE_PCH_INSTANTIATE_TEMPLATES ON)
-endif()
diff --git a/src/hid_core/CMakeLists.txt b/src/hid_core/CMakeLists.txt
index 2699e1599e..26d9ec1d3f 100644
--- a/src/hid_core/CMakeLists.txt
+++ b/src/hid_core/CMakeLists.txt
@@ -134,7 +134,6 @@ add_library(hid_core STATIC
hid_result.h
hid_types.h
hid_util.h
- precompiled_headers.h
resource_manager.cpp
resource_manager.h
)
@@ -160,7 +159,3 @@ endif()
create_target_directory_groups(hid_core)
target_link_libraries(hid_core PUBLIC core)
-
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(hid_core PRIVATE precompiled_headers.h)
-endif()
diff --git a/src/hid_core/precompiled_headers.h b/src/hid_core/precompiled_headers.h
deleted file mode 100644
index aabae730bf..0000000000
--- a/src/hid_core/precompiled_headers.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt
index f49db2ea3c..30ccd7e8c1 100644
--- a/src/input_common/CMakeLists.txt
+++ b/src/input_common/CMakeLists.txt
@@ -35,7 +35,6 @@ add_library(input_common STATIC
input_poller.h
main.cpp
main.h
- precompiled_headers.h
)
if (MSVC)
@@ -92,10 +91,6 @@ endif()
create_target_directory_groups(input_common)
target_link_libraries(input_common PUBLIC hid_core PRIVATE common Boost::headers)
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(input_common PRIVATE precompiled_headers.h)
-endif()
-
if (ANDROID)
target_sources(input_common PRIVATE
drivers/android.cpp
diff --git a/src/input_common/precompiled_headers.h b/src/input_common/precompiled_headers.h
deleted file mode 100644
index aabae730bf..0000000000
--- a/src/input_common/precompiled_headers.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"
diff --git a/src/network/CMakeLists.txt b/src/network/CMakeLists.txt
index 598cc2e1be..24b752ccc5 100644
--- a/src/network/CMakeLists.txt
+++ b/src/network/CMakeLists.txt
@@ -11,7 +11,6 @@ add_library(network STATIC
network.h
packet.cpp
packet.h
- precompiled_headers.h
room.cpp
room.h
room_member.cpp
@@ -32,7 +31,3 @@ endif()
if (PLATFORM_SUN)
target_link_libraries(network PRIVATE socket nsl)
endif()
-
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(network PRIVATE precompiled_headers.h)
-endif()
diff --git a/src/network/precompiled_headers.h b/src/network/precompiled_headers.h
deleted file mode 100644
index aabae730bf..0000000000
--- a/src/network/precompiled_headers.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"
diff --git a/src/shader_recompiler/CMakeLists.txt b/src/shader_recompiler/CMakeLists.txt
index 79a4bf4fd2..4f19e00ee4 100644
--- a/src/shader_recompiler/CMakeLists.txt
+++ b/src/shader_recompiler/CMakeLists.txt
@@ -237,7 +237,6 @@ add_library(shader_recompiler STATIC
ir_opt/vendor_workaround_pass.cpp
ir_opt/verification_pass.cpp
object_pool.h
- precompiled_headers.h
profile.h
program_header.h
runtime_info.h
@@ -266,7 +265,3 @@ else()
endif()
create_target_directory_groups(shader_recompiler)
-
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(shader_recompiler PRIVATE precompiled_headers.h)
-endif()
diff --git a/src/shader_recompiler/precompiled_headers.h b/src/shader_recompiler/precompiled_headers.h
deleted file mode 100644
index 5dd6b7eca3..0000000000
--- a/src/shader_recompiler/precompiled_headers.h
+++ /dev/null
@@ -1,7 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"
-#include "frontend/maxwell/translate/impl/impl.h"
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index c1fdd374ef..b6af1fa750 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -17,7 +17,6 @@ add_executable(tests
common/unique_function.cpp
core/core_timing.cpp
core/internal_network/network.cpp
- precompiled_headers.h
video_core/memory_tracker.cpp
input_common/calibration_configuration_job.cpp
)
@@ -28,7 +27,3 @@ target_link_libraries(tests PRIVATE common core input_common video_core)
target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} Catch2::Catch2WithMain Threads::Threads)
add_test(NAME tests COMMAND tests)
-
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(tests PRIVATE precompiled_headers.h)
-endif()
diff --git a/src/tests/precompiled_headers.h b/src/tests/precompiled_headers.h
deleted file mode 100644
index aabae730bf..0000000000
--- a/src/tests/precompiled_headers.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt
index 4a168241a4..444e0461f1 100644
--- a/src/video_core/CMakeLists.txt
+++ b/src/video_core/CMakeLists.txt
@@ -102,7 +102,6 @@ add_library(video_core STATIC
invalidation_accumulator.h
memory_manager.cpp
memory_manager.h
- precompiled_headers.h
present.h
pte_kind.h
query_cache/bank_base.h
@@ -395,10 +394,6 @@ if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)
target_link_libraries(video_core PRIVATE dynarmic::dynarmic)
endif()
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(video_core PRIVATE precompiled_headers.h)
-endif()
-
if (ANDROID AND ARCHITECTURE_arm64)
target_link_libraries(video_core PRIVATE adrenotools)
endif()
diff --git a/src/video_core/precompiled_headers.h b/src/video_core/precompiled_headers.h
deleted file mode 100644
index aabae730bf..0000000000
--- a/src/video_core/precompiled_headers.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"
diff --git a/src/web_service/CMakeLists.txt b/src/web_service/CMakeLists.txt
index af56502827..0dedad16f7 100644
--- a/src/web_service/CMakeLists.txt
+++ b/src/web_service/CMakeLists.txt
@@ -4,7 +4,6 @@
add_library(web_service STATIC
announce_room_json.cpp
announce_room_json.h
- precompiled_headers.h
verify_login.cpp
verify_login.h
verify_user_jwt.cpp
@@ -21,7 +20,3 @@ target_link_libraries(web_service PRIVATE common network nlohmann_json::nlohmann
find_package(OpenSSL REQUIRED)
target_link_libraries(web_service PRIVATE OpenSSL::SSL OpenSSL::Crypto)
target_compile_definitions(web_service PRIVATE CPPHTTPLIB_OPENSSL_SUPPORT)
-
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(web_service PRIVATE precompiled_headers.h)
-endif()
diff --git a/src/web_service/precompiled_headers.h b/src/web_service/precompiled_headers.h
deleted file mode 100644
index aabae730bf..0000000000
--- a/src/web_service/precompiled_headers.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index 0bb51b250e..4b1e87b6ed 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -198,7 +198,6 @@ add_executable(yuzu
multiplayer/state.cpp
multiplayer/state.h
multiplayer/validation.h
- precompiled_headers.h
startup_checks.cpp
startup_checks.h
set_play_time_dialog.cpp
@@ -448,10 +447,6 @@ if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)
target_link_libraries(yuzu PRIVATE dynarmic::dynarmic)
endif()
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(yuzu PRIVATE precompiled_headers.h)
-endif()
-
if (YUZU_ROOM)
target_link_libraries(yuzu PRIVATE yuzu-room)
endif()
diff --git a/src/yuzu/precompiled_headers.h b/src/yuzu/precompiled_headers.h
deleted file mode 100644
index aabae730bf..0000000000
--- a/src/yuzu/precompiled_headers.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"
diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt
index a60650bc19..211b3141c2 100644
--- a/src/yuzu_cmd/CMakeLists.txt
+++ b/src/yuzu_cmd/CMakeLists.txt
@@ -24,7 +24,6 @@ add_executable(yuzu-cmd
emu_window/emu_window_sdl2_null.h
emu_window/emu_window_sdl2_vk.cpp
emu_window/emu_window_sdl2_vk.h
- precompiled_headers.h
sdl_config.cpp
sdl_config.h
yuzu.cpp
@@ -61,8 +60,4 @@ if (MSVC)
copy_yuzu_SDL_deps(yuzu-cmd)
endif()
-if (YUZU_USE_PRECOMPILED_HEADERS)
- target_precompile_headers(yuzu-cmd PRIVATE precompiled_headers.h)
-endif()
-
create_target_directory_groups(yuzu-cmd)
diff --git a/src/yuzu_cmd/precompiled_headers.h b/src/yuzu_cmd/precompiled_headers.h
deleted file mode 100644
index aabae730bf..0000000000
--- a/src/yuzu_cmd/precompiled_headers.h
+++ /dev/null
@@ -1,6 +0,0 @@
-// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
-// SPDX-License-Identifier: GPL-2.0-or-later
-
-#pragma once
-
-#include "common/common_precompiled_headers.h"