1
1
Fork 0
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:
Sergei Zimmerman 2025-07-20 21:16:20 +03:00
parent c70e1433ab
commit e920e28734
No known key found for this signature in database
2 changed files with 8 additions and 0 deletions

View file

@ -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)

View 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>