build: use PCH to reduce compile time (#3095)

This commit is contained in:
memchr 2023-09-04 17:56:02 +00:00 committed by GitHub
parent 4eecb8bffc
commit 8e9f010ee0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 0 deletions

View file

@ -4,6 +4,7 @@ src = globber.stdout().strip().split('\n')
executable('Hyprland', src,
cpp_args: ['-DWLR_USE_UNSTABLE'],
link_args: '-rdynamic',
cpp_pch: 'pch/pch.hpp',
dependencies: [
server_protos,
dependency('wayland-server'),