mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	Merge pull request #9300 from ameerj/pch
CMake: Use precompiled headers to improve compile times
This commit is contained in:
		@@ -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()
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										11
									
								
								src/core/precompiled_headers.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								src/core/precompiled_headers.h
									
									
									
									
									
										Normal 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"
 | 
			
		||||
		Reference in New Issue
	
	Block a user