mirror of https://github.com/PCSX2/pcsx2.git
GHActions: Check multi-isa builds for global constructors
This commit is contained in:
parent
9ff2dd6be1
commit
22f214c8e1
|
@ -124,6 +124,13 @@ jobs:
|
||||||
ccache -z
|
ccache -z
|
||||||
make -j$(getconf _NPROCESSORS_ONLN) # macOS doesn't use make install
|
make -j$(getconf _NPROCESSORS_ONLN) # macOS doesn't use make install
|
||||||
ccache -s
|
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
|
- name: Run Tests
|
||||||
working-directory: build
|
working-directory: build
|
||||||
|
|
Loading…
Reference in New Issue