Merge pull request #9300 from ameerj/pch

CMake: Use precompiled headers to improve compile times
This commit is contained in:
liamwhite 2022-12-03 14:10:06 -05:00 committed by GitHub
commit 75e16547f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 174 additions and 5 deletions

View file

@ -771,6 +771,7 @@ add_library(core STATIC
memory.h
perf_stats.cpp
perf_stats.h
precompiled_headers.h
reporter.cpp
reporter.h
telemetry_session.cpp
@ -825,3 +826,7 @@ if (ARCHITECTURE_x86_64 OR ARCHITECTURE_arm64)
)
target_link_libraries(core PRIVATE dynarmic)
endif()
if (YUZU_USE_PRECOMPILED_HEADERS)
target_precompile_headers(core PRIVATE precompiled_headers.h)
endif()

View file

@ -0,0 +1,11 @@
// 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"