mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
Meta: Add an option to precompile some very common AK headers
Until we get the goodness that C++ modules are supposed to be, let's try to shave off some parse time using precompiled headers. This commit only adds some very common AK headers, only to binaries, libraries and the kernel (tests are not covered due to incompatibility with AK/TestSuite.h). This option is on by default, but can be disabled by passing `-DPRECOMPILE_COMMON_HEADERS=OFF` to cmake, which will disable all header precompilations. This makes the build about 30 seconds faster on my machine (about 7%).
This commit is contained in:
parent
c4f682606a
commit
468ac11f29
5 changed files with 63 additions and 0 deletions
|
@ -361,6 +361,7 @@ add_executable(Kernel ${SOURCES})
|
|||
target_link_libraries(Kernel kernel_heap gcc stdc++)
|
||||
add_dependencies(Kernel boot kernel_heap)
|
||||
install(TARGETS Kernel RUNTIME DESTINATION boot)
|
||||
serenity_add_ak_precompiled_headers_to_target(Kernel)
|
||||
|
||||
add_custom_command(
|
||||
TARGET Kernel
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue