mirror of
https://sourceware.org/git/glibc.git
synced 2026-10-28 10:25:13 +08:00
The builddir Makefile runs a separate make in the source directory for each goal, so 'make -jN check xcheck' runs both at the same time. Since a subdirectory's xtests also builds and runs its tests, the two instances build the same targets concurrently and fail when renaming the shared temporary files. Add .NOTPARALLEL so the goals run one after another; each still builds in parallel. Checked on x86_64-linux-gnu. Reviewed-by: Arjun Shankar <arjun@redhat.com>
43 lines
1.6 KiB
Makefile
43 lines
1.6 KiB
Makefile
srcdir = @srcdir@
|
|
|
|
TEST_CC = @TEST_CC@
|
|
TEST_CXX = @TEST_CXX@
|
|
test-cc-option-wimplicit-fallthrough = @libc_cv_test_cc_wimplicit_fallthrough@
|
|
test-config-cflags-mprefer-vector-width = @libc_cv_test_cc_mprefer_vector_width@
|
|
test-config-cflags-signaling-nans = @libc_cv_test_cc_signaling_nans@
|
|
test-cc-option-wfree-labels = @libc_cv_test_cc_wfree_labels@
|
|
test-cc-option-wmissing-parameter-name = @libc_cv_test_cc_wmissing_parameter_name@
|
|
test-enable-cet = @test_enable_cet@
|
|
test-have-static-pie = @libc_cv_test_static_pie@
|
|
test-supported-fortify = @libc_cv_test_supported_fortify_source@
|
|
|
|
# Uncomment the line below if you want to do parallel build.
|
|
# PARALLELMFLAGS = -j 4
|
|
|
|
.PHONY: all install bench
|
|
|
|
.NOTPARALLEL:
|
|
|
|
all .DEFAULT:
|
|
$(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) objdir=`pwd` $@
|
|
|
|
check xcheck test:
|
|
$(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) \
|
|
CC="$(TEST_CC)" CXX="$(TEST_CXX)" \
|
|
cc-option-wimplicit-fallthrough="$(test-cc-option-wimplicit-fallthrough)" \
|
|
config-cflags-mprefer-vector-width="$(test-config-cflags-mprefer-vector-width)" \
|
|
config-cflags-signaling-nans="$(test-config-cflags-signaling-nans)" \
|
|
cc-option-wfree-labels="$(test-cc-option-wfree-labels)" \
|
|
cc-option-wmissing-parameter-name="$(test-cc-option-wmissing-parameter-name)" \
|
|
enable-cet="$(test-enable-cet)" \
|
|
have-static-pie="$(test-have-static-pie)" \
|
|
supported-fortify="$(test-supported-fortify)" \
|
|
objdir=`pwd` $@
|
|
|
|
install:
|
|
LC_ALL=C; export LC_ALL; \
|
|
$(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) objdir=`pwd` $@
|
|
|
|
bench bench-clean bench-build:
|
|
$(MAKE) -C $(srcdir)/benchtests $(PARALLELMFLAGS) objdir=`pwd` $@
|