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.
This commit is contained in:
Ali Mohammad Pur 2021-04-21 15:49:18 +04:30 committed by Linus Groh
parent 468ac11f29
commit f90a1f83ed
Notes: sideshowbarker 2024-07-18 19:18:28 +09:00

View File

@ -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)