From f90a1f83ed47b0a4d3025c9460ec817e0f91ee84 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Wed, 21 Apr 2021 15:49:18 +0430 Subject: [PATCH] LibJS: Precompile Heap.h and GlobalObject.h This is somewhat noticable difference (~10s), as these two headers are basically included in every single JS file anyway. --- Userland/Libraries/LibJS/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Userland/Libraries/LibJS/CMakeLists.txt b/Userland/Libraries/LibJS/CMakeLists.txt index 8098e2b9bc..bcfd5a96f0 100644 --- a/Userland/Libraries/LibJS/CMakeLists.txt +++ b/Userland/Libraries/LibJS/CMakeLists.txt @@ -93,3 +93,6 @@ set(SOURCES serenity_lib(LibJS js) target_link_libraries(LibJS LibM LibCore LibCrypto LibRegex LibSyntax) + +serenity_add_precompiled_header_to_target(LibJS ${CMAKE_CURRENT_SOURCE_DIR}/Heap/Heap.h) +serenity_add_precompiled_header_to_target(LibJS ${CMAKE_CURRENT_SOURCE_DIR}/Runtime/GlobalObject.h)