mirror of
https://github.com/NixOS/nix.git
synced 2025-12-19 23:41:07 +01:00
nix-cli: Speed up builds by using precompiled headers
This commit is contained in:
parent
46469983e7
commit
9dae9f6cab
2 changed files with 4 additions and 0 deletions
|
|
@ -186,6 +186,7 @@ this_exe = executable(
|
||||||
include_directories : include_dirs,
|
include_directories : include_dirs,
|
||||||
link_args: linker_export_flags,
|
link_args: linker_export_flags,
|
||||||
install : true,
|
install : true,
|
||||||
|
cpp_pch : ['pch/precompiled-headers.hh']
|
||||||
)
|
)
|
||||||
|
|
||||||
meson.override_find_program('nix', this_exe)
|
meson.override_find_program('nix', this_exe)
|
||||||
|
|
|
||||||
3
src/nix/pch/precompiled-headers.hh
Normal file
3
src/nix/pch/precompiled-headers.hh
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
#include "nix/cmd/command.hh"
|
||||||
|
#include "nix/expr/eval.hh"
|
||||||
|
#include "nix/main/shared.hh"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue