diff --git a/src/libstore/meson.build b/src/libstore/meson.build index d82bcddc1..375959643 100644 --- a/src/libstore/meson.build +++ b/src/libstore/meson.build @@ -348,6 +348,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/store', preserve_path : true) diff --git a/src/libstore/pch/precompiled-headers.hh b/src/libstore/pch/precompiled-headers.hh new file mode 100644 index 000000000..ea0dd5d70 --- /dev/null +++ b/src/libstore/pch/precompiled-headers.hh @@ -0,0 +1,8 @@ +#include "nix/store/store-api.hh" +#include "nix/store/realisation.hh" +#include "nix/store/derived-path.hh" +#include "nix/store/derivations.hh" +#include "nix/store/local-store.hh" +#include "nix/util/util.hh" + +#include