1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-18 23:11:08 +01:00

nix-cli: Speed up builds by using precompiled headers

This commit is contained in:
Sergei Zimmerman 2025-07-20 21:45:39 +03:00
parent 46469983e7
commit 9dae9f6cab
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View file

@ -186,6 +186,7 @@ this_exe = executable(
include_directories : include_dirs,
link_args: linker_export_flags,
install : true,
cpp_pch : ['pch/precompiled-headers.hh']
)
meson.override_find_program('nix', this_exe)

View file

@ -0,0 +1,3 @@
#include "nix/cmd/command.hh"
#include "nix/expr/eval.hh"
#include "nix/main/shared.hh"