Get universal binary working for clang on Linux

A few changes were necessary, mainly because clang LTO works a bit differently than GCC

Doesn't yet work on Windows

small Makefile cleanups

closes https://github.com/official-stockfish/Stockfish/pull/6764

No functional change
This commit is contained in:
anematode
2026-04-26 09:31:30 +02:00
committed by Joost VandeVondele
parent 86853a60ce
commit 8f181af8fb
3 changed files with 35 additions and 23 deletions
+7
View File
@@ -37,6 +37,13 @@ icl:x86-64-avx512icl
adl:x86-64-avxvnni
"
BINARY_SIZE=$(wc -c < "$STOCKFISH_EXE")
MAX_SIZE=$((150 * 1024 * 1024))
if [ "$BINARY_SIZE" -gt "$MAX_SIZE" ]; then
printf 'check_universal.sh: binary size %d bytes exceeds 150 MB limit\n' "$BINARY_SIZE" >&2
exit 1
fi
FAIL=0
i=0
for pair in $PAIRS; do