mirror of
https://github.com/NixOS/nix.git
synced 2025-11-12 13:36:02 +01:00
libutil-tests: Improve compile times with PCH
(Before) **** Time summary: Compilation (30 times): Parsing (frontend): 98.2 s Codegen & opts (backend): 27.7 s (After) **** Time summary: Compilation (31 times): Parsing (frontend): 34.9 s Codegen & opts (backend): 28.1 s
This commit is contained in:
parent
d6973e105c
commit
f13aeaf2f1
2 changed files with 6 additions and 0 deletions
|
|
@ -89,6 +89,7 @@ this_exe = executable(
|
|||
link_args : linker_export_flags + [ '-lrapidcheck' ],
|
||||
# get main from gtest
|
||||
install : true,
|
||||
cpp_pch : do_pch ? [ 'pch/precompiled-headers.hh' ] : [],
|
||||
)
|
||||
|
||||
test(
|
||||
|
|
|
|||
5
src/libutil-tests/pch/precompiled-headers.hh
Normal file
5
src/libutil-tests/pch/precompiled-headers.hh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#include "nix/util/util.hh"
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <gmock/gmock.h>
|
||||
#include <rapidcheck/gtest.h>
|
||||
Loading…
Add table
Add a link
Reference in a new issue