-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This follows up the removal of -Dauto_features to explicitly force each option that ought to be detected.
- Loading branch information
Showing
2 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/bin/bash | ||
|
||
# Produce flags to meson to force certain features. This ensures that the CI | ||
# builds are actually testing all the optional features, and not failing to | ||
# include them because the detection code is broken. | ||
|
||
flags=( | ||
"--native-file=ci.ini" | ||
"-Dwerror=true" | ||
"-Dtools=enabled" | ||
"-Dpcap=enabled" | ||
"-Dpthread_setaffinity_np=enabled" | ||
"-Dunit_test=enabled" | ||
) | ||
|
||
if [ "$(uname)" = "Linux" ]; then | ||
flags+=( | ||
"-Dibv=enabled" | ||
"-Dmlx5dv=enabled" | ||
"-Dibv_hw_rate_limit=enabled" | ||
"-Dpcap=enabled" | ||
"-Dcap=enabled" | ||
"-Drecvmmsg=enabled" | ||
"-Dsendmmsg=enabled" | ||
"-Dgso=enabled" | ||
"-Dgro=enabled" | ||
"-Dposix_semaphores=enabled" | ||
"-Deventfd=enabled" | ||
) | ||
fi | ||
|
||
case "$(arch)" in | ||
x86_64) | ||
flags+=( | ||
"-Dsse2_stream=enabled" | ||
"-Davx_stream=enabled" | ||
"-Davx512_stream=enabled" | ||
) | ||
;; | ||
aarch64 | arm64) | ||
flags+=( | ||
"-Dsve_stream=enabled" | ||
) | ||
;; | ||
esac | ||
|
||
echo "Setting flags ${flags[*]}" 1>&2 | ||
|
||
if [ "$1" = "--python" ]; then | ||
for arg in "${flags[@]}"; do | ||
echo -n "--config-settings=setup-args=$arg " | ||
done | ||
echo | ||
else | ||
echo "${flags[*]}" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters