]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
benchtests: Only build libmvec benchmarks iff $(build-mathvec) is set
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 4 Apr 2022 12:34:14 +0000 (09:34 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 5 Apr 2022 15:01:10 +0000 (12:01 -0300)
Checked on x86_64-linux-gnu.

sysdeps/x86_64/fpu/Makefile

index 8278ce104a3d52ed6042c6755ee84aa7152a8217..24af49e06809337dfbf3d501a150c2fc614d3eb2 100644 (file)
@@ -75,7 +75,7 @@ ifeq ($(subdir)$(config-cflags-mprefer-vector-width),mathyes)
 CFLAGS-branred.c = -mprefer-vector-width=128
 endif
 
-ifeq ($(subdir),benchtests)
+ifeq ($(subdir)$(build-mathvec),benchtestsyes)
 double-vlen4-arch-ext-cflags = -mavx
 double-vlen4-arch-ext2-cflags = -mavx2
 double-vlen8-arch-ext-cflags = -mavx512f