]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Major improvement to build parallelism for googletest internal tests
authorarichardson <arichardson@FreeBSD.org>
Mon, 19 Oct 2020 19:50:57 +0000 (19:50 +0000)
committerarichardson <arichardson@FreeBSD.org>
Mon, 19 Oct 2020 19:50:57 +0000 (19:50 +0000)
commit840e4928f75bb84fa2b4a3706d411a50679bee54
treefe695d5a3f10e2a6478f7c23f7f27ed6eacc5e82
parent702b531de7afdc9940cc3fa27cb34de28e7feaff
Major improvement to build parallelism for googletest internal tests

Currently the googletest internal tests build after the matching library.
However, each of these is serialized at the top level makefile.
Additionally some of the tests (e.g. the gmock-matches-test) take up to
90 seconds to build with clang -O2. Having to wait for this test to
complete before continuing to the next directory seriously slows down the
parllelism of a -j32 build.
Before this change running `make -C lib/googletest -j32 -s` in buildenv
took 202 seconds, now it's 153 due to improved parallelism.

Reviewed By: emaste (no objection)
Differential Revision: https://reviews.freebsd.org/D26748
lib/googletest/gmock/Makefile
lib/googletest/gmock_main/Makefile
lib/googletest/gtest/Makefile
lib/googletest/gtest_main/Makefile
lib/googletest/tests/Makefile
lib/googletest/tests/Makefile.inc [new file with mode: 0644]
lib/googletest/tests/gmock/Makefile [moved from lib/googletest/gmock/tests/Makefile with 100% similarity]
lib/googletest/tests/gmock_main/Makefile [moved from lib/googletest/gmock_main/tests/Makefile with 100% similarity]
lib/googletest/tests/gtest/Makefile [moved from lib/googletest/gtest/tests/Makefile with 100% similarity]
lib/googletest/tests/gtest_main/Makefile [moved from lib/googletest/gtest_main/tests/Makefile with 100% similarity]