about summary refs log tree commit diff
path: root/locale/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-07-19 10:30:34 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-07-22 11:06:16 -0300
commit6c4ed247bf5aee6416c8c81a394cf692e068a579 (patch)
tree45b9cda4e333f604074228a89a7d3afac24272e4 /locale/Makefile
parentac8047cdf326504f652f7db97ec96c0e0cee052f (diff)
downloadglibc-6c4ed247bf5aee6416c8c81a394cf692e068a579.tar.gz
glibc-6c4ed247bf5aee6416c8c81a394cf692e068a579.tar.xz
glibc-6c4ed247bf5aee6416c8c81a394cf692e068a579.zip
locale: Optimize tst-localedef-path-norm
The locale generation are issues in parallel to try speed locale
generation.  The maximum number of jobs are limited to the online
CPU (in hope to not overcommit on environments with lower cores
than tests).

On a Ryzen 9, the test execution improves from ~6.7s to ~1.4s.

Tested-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'locale/Makefile')
-rw-r--r--locale/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/locale/Makefile b/locale/Makefile
index c315683b3f..eb55750496 100644
--- a/locale/Makefile
+++ b/locale/Makefile
@@ -116,3 +116,5 @@ include $(patsubst %,$(..)libof-iterator.mk,$(cpp-srcs-left))
 $(objpfx)tst-locale-locpath.out : tst-locale-locpath.sh $(objpfx)locale
 	$(SHELL) $< '$(common-objpfx)' '$(test-wrapper-env)' '$(run-program-env)' > $@; \
 	$(evaluate-test)
+
+$(objpfx)tst-localedef-path-norm: $(shared-thread-library)