mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
libexpr: Speed up builds by using precompiled headers
This commit is contained in:
parent
33d031095f
commit
af6c84b523
2 changed files with 2 additions and 0 deletions
|
|
@ -178,6 +178,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/expr', preserve_path : true)
|
||||
|
|
|
|||
1
src/libexpr/pch/precompiled-headers.hh
Normal file
1
src/libexpr/pch/precompiled-headers.hh
Normal file
|
|
@ -0,0 +1 @@
|
|||
#include "nix/expr/eval.hh"
|
||||
Loading…
Add table
Add a link
Reference in a new issue