summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/CMakeLists.txt2
-rw-r--r--src/common/common_precompiled_headers.h14
-rw-r--r--src/common/precompiled_headers.h8
3 files changed, 16 insertions, 8 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 25fe5f56f..a12edc584 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -37,6 +37,7 @@ add_library(common STATIC
37 cache_management.cpp 37 cache_management.cpp
38 cache_management.h 38 cache_management.h
39 common_funcs.h 39 common_funcs.h
40 common_precompiled_headers.h
40 common_types.h 41 common_types.h
41 concepts.h 42 concepts.h
42 div_ceil.h 43 div_ceil.h
@@ -187,5 +188,4 @@ endif()
187 188
188if (YUZU_USE_PRECOMPILED_HEADERS) 189if (YUZU_USE_PRECOMPILED_HEADERS)
189 target_precompile_headers(common PRIVATE precompiled_headers.h) 190 target_precompile_headers(common PRIVATE precompiled_headers.h)
190 set(CMAKE_PCH_INSTANTIATE_TEMPLATES ON)
191endif() 191endif()
diff --git a/src/common/common_precompiled_headers.h b/src/common/common_precompiled_headers.h
new file mode 100644
index 000000000..be7e5b5f9
--- /dev/null
+++ b/src/common/common_precompiled_headers.h
@@ -0,0 +1,14 @@
1// SPDX-FileCopyrightText: 2022 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include <algorithm>
7#include <array>
8#include <chrono>
9#include <memory>
10
11#include <fmt/format.h>
12
13#include "common/assert.h"
14#include "common/common_types.h"
diff --git a/src/common/precompiled_headers.h b/src/common/precompiled_headers.h
index 5f81bef98..aabae730b 100644
--- a/src/common/precompiled_headers.h
+++ b/src/common/precompiled_headers.h
@@ -3,10 +3,4 @@
3 3
4#pragma once 4#pragma once
5 5
6#include <algorithm> 6#include "common/common_precompiled_headers.h"
7#include <chrono>
8#include <memory>
9
10#include <fmt/format.h>
11
12#include "common/assert.h"