GHActions: Check multi-isa builds for global constructors

This commit is contained in:
TellowKrinkle 2022-08-31 01:57:53 -05:00 committed by TellowKrinkle
parent 9ff2dd6be1
commit 22f214c8e1
1 changed files with 7 additions and 0 deletions

View File

@ -124,6 +124,13 @@ jobs:
ccache -z
make -j$(getconf _NPROCESSORS_ONLN) # macOS doesn't use make install
ccache -s
# Ensure there's no global constructors in multi-isa files
for dir in */CMakeFiles/GS-{avx,avx2}.dir; do
if find "$dir" -name "*.o" | xargs nm | grep _GLOBAL_; then
echo "::error::Multi-isa files must not have global constructors!"
exit 1
fi
done
- name: Run Tests
working-directory: build