mirror of
https://github.com/NixOS/nix.git
synced 2025-11-08 19:46:02 +01:00
libexpr-tests: Improve compile times with PCH
(Before) **** Time summary: Compilation (14 times): Parsing (frontend): 60.1 s Codegen & opts (backend): 18.0 s (After) **** Time summary: Compilation (15 times): Parsing (frontend): 16.6 s Codegen & opts (backend): 17.4 s
This commit is contained in:
parent
3c0a5e0a51
commit
d6973e105c
2 changed files with 5 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ this_exe = executable(
|
|||
# TODO: -lrapidcheck, see ../libutil-support/build.meson
|
||||
link_args : linker_export_flags + [ '-lrapidcheck' ],
|
||||
install : true,
|
||||
cpp_pch : do_pch ? [ 'pch/precompiled-headers.hh' ] : [],
|
||||
)
|
||||
|
||||
test(
|
||||
|
|
|
|||
4
src/libexpr-tests/pch/precompiled-headers.hh
Normal file
4
src/libexpr-tests/pch/precompiled-headers.hh
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
#include "nix/expr/tests/libexpr.hh"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <gmock/gmock.h>
|
||||
Loading…
Add table
Add a link
Reference in a new issue