@@ -36,6 +36,11 @@ setup_base()
36
36
sysflags=" $( $PYTHON -c " from distutils import sysconfig; \
37
37
print (sysconfig.get_config_var('CFLAGS'))" ) "
38
38
export CFLAGS=" $sysflags $werrors -Wlogical-op -Wno-sign-compare"
39
+ # SIMD extensions that need to be tested on both runtime and compile-time via (test_simd.py)
40
+ # any specified features will be ignored if they're not supported by compiler or platform
41
+ # note: it almost the same default value of --simd-test execpt adding policy `$werror` to treat all
42
+ # warnings as errors
43
+ simd_test=" \$ werror BASELINE SSE2 SSE42 XOP FMA4 (FMA3 AVX2) AVX512F AVX512_SKX VSX VSX2 VSX3 NEON ASIMD"
39
44
# We used to use 'setup.py install' here, but that has the terrible
40
45
# behaviour that if a copy of the package is already installed in the
41
46
# install location, then the new copy just gets dropped on top of it.
@@ -53,11 +58,11 @@ setup_base()
53
58
# #if !HAVE_FFI_PREP_CIF_VAR && defined(__arm64__) && defined(__APPLE__)
54
59
#
55
60
export CFLAGS=" $CFLAGS -Werror=undef"
56
- $PIP install -v . 2>&1 | tee log
61
+ $PYTHON setup.py build --simd-test " $simd_test " install 2>&1 | tee log
57
62
else
58
63
# The job run with USE_DEBUG=1 on travis needs this.
59
64
export CFLAGS=$CFLAGS " -Wno-maybe-uninitialized"
60
- $PYTHON setup.py build build_src --verbose-cfg build_ext --inplace 2>&1 | tee log
65
+ $PYTHON setup.py build --simd-test " $simd_test " build_src --verbose-cfg build_ext --inplace 2>&1 | tee log
61
66
fi
62
67
grep -v " _configtest" log \
63
68
| grep -vE " ld returned 1|no files found matching" \
0 commit comments