mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 12:06:01 +01:00
libcmd: Speed up builds by using precompiled headers
This commit is contained in:
parent
af6c84b523
commit
46469983e7
2 changed files with 5 additions and 0 deletions
|
|
@ -92,6 +92,7 @@ this_library = library(
|
|||
link_args: linker_export_flags,
|
||||
prelink : true, # For C++ static initializers
|
||||
install : true,
|
||||
cpp_pch : ['pch/precompiled-headers.hh']
|
||||
)
|
||||
|
||||
install_headers(headers, subdir : 'nix/cmd', preserve_path : true)
|
||||
|
|
|
|||
4
src/libcmd/pch/precompiled-headers.hh
Normal file
4
src/libcmd/pch/precompiled-headers.hh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#include "nix/cmd/installables.hh"
|
||||
#include "nix/expr/eval.hh"
|
||||
#include "nix/util/util.hh"
|
||||
#include "nix/flake/flake.hh"
|
||||
Loading…
Add table
Add a link
Reference in a new issue