mirror of
git://sourceware.org/git/glibc.git
synced 2025-01-18 12:16:13 +08:00
1294926da3
Since have-mtls-descriptor is only used for glibc testing, rename it to have-test-mtls-descriptor. Also enable tst-gnu2-tls2-amx only if $(have-test-mtls-descriptor) == gnu2. Tested with GCC 14 and Clang 19/18/17 on x86-64. Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Sam James <sam@gentoo.org>
45 lines
1.7 KiB
Makefile
45 lines
1.7 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-config-cflags-wno-ignored-attributes = @libc_cv_test_wno_ignored_attributes@
|
|
test-enable-cet = @test_enable_cet@
|
|
test-have-mamx-tile = @libc_cv_test_x86_have_amx_tile@
|
|
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
|
|
|
|
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)" \
|
|
config-cflags-wno-ignored-attributes="$(test-config-cflags-wno-ignored-attributes)" \
|
|
enable-cet="$(test-enable-cet)" \
|
|
have-mamx-tile="$(test-have-mamx-tile)" \
|
|
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` $@
|
|
|
|
# Convenience target to rebuild ULPs for all math tests.
|
|
regen-ulps:
|
|
$(MAKE) -C $(srcdir)/math $(PARALLELMFLAGS) objdir=`pwd` $@
|