mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
libutil: Speed up builds by using precompiled headers
This commit is contained in:
parent
c70e1433ab
commit
e920e28734
2 changed files with 8 additions and 0 deletions
|
|
@ -191,6 +191,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/util', preserve_path : true)
|
||||
|
|
|
|||
7
src/libutil/pch/precompiled-headers.hh
Normal file
7
src/libutil/pch/precompiled-headers.hh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#include "nix/util/util.hh"
|
||||
#include "nix/util/file-system.hh"
|
||||
#include "nix/util/serialise.hh"
|
||||
#include "nix/util/signals.hh"
|
||||
#include "nix/util/source-accessor.hh"
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
Loading…
Add table
Add a link
Reference in a new issue