Skip to content

Commit 30a778e

Browse files
committed
math: Fix build system for old config.mk
There are new make variables WANT_EXP10_TESTS and WANT_SIMD_EXCEPT, make sure unset variables work too on top of the 0 and 1 settings, this way old config.mk still builds unmodified.
1 parent befe3c6 commit 30a778e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

math/Dir.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ build/bin/%.sh: $(S)/test/%.sh
9696
cp $< $@
9797

9898
math-tests := $(wildcard $(S)/test/testcases/directed/*.tst)
99-
ifeq ($(WANT_EXP10_TESTS),0)
99+
ifneq ($(WANT_EXP10_TESTS),1)
100100
math-tests := $(filter-out %exp10.tst, $(math-tests))
101101
endif
102102
math-rtests := $(wildcard $(S)/test/testcases/random/*.tst)

math/test/runulp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ t pow 0x1.ffffffffffff0p-1 0x1.0000000000008p0 x 0x1p60 0x1p68 50000
7272
t pow 0x1.ffffffffff000p-1 0x1p0 x 0x1p50 0x1p52 50000
7373
t pow -0x1.ffffffffff000p-1 -0x1p0 x 0x1p50 0x1p52 50000
7474

75-
if [ $WANT_EXP10_TESTS -eq 1 ]; then
75+
if [ "$WANT_EXP10_TESTS" = 1 ]; then
7676
L=0.02
7777
t exp10 0 0x1p-47 5000
7878
t exp10 -0 -0x1p-47 5000
@@ -156,7 +156,7 @@ done
156156

157157
# vector functions
158158

159-
if [ $WANT_SIMD_TESTS -eq 1 ]; then
159+
if [ "$WANT_SIMD_TESTS" = 1 ]; then
160160

161161
Ldir=0.5
162162
r='n'

0 commit comments

Comments
 (0)