Skip to content

Commit 1fc4c41

Browse files
committed
check arch flags
1 parent 2c1ba1e commit 1fc4c41

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

build_all_platforms.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ do
1919
ps aux | grep -v grep | grep "platform=${platform}" > /dev/null \
2020
&& printf "%30s\n" "already building" \
2121
&& continue
22-
for flag in cpu tune
22+
for flag in arch cpu tune
2323
do
2424
(docker run --platform=${platform} -it --rm gcc:latest g++ -m${flag}=native -Q --help=target 2>&1 || echo "${flag} failed") > ${LOG_BASE}_m${flag}.txt
25+
printf "%8s=%d" "${flag}" "$?"
2526
done
27+
# (docker run --platform=${platform} -it --rm debian:trixie-slim /bin/bash -c 'apt update && apt install -y g++ && g++ -mtune=native -Q --help=target 2>&1' || echo "tune failed") > ${LOG_BASE}_mtune.txt
28+
# (docker run --platform=${platform} -it --rm debian:trixie-slim /bin/bash -c 'apt update && apt install -y g++ && g++ -mcpu=native -Q --help=target 2>&1' || echo "cpu failed") > ${LOG_BASE}_mcpu.txt
29+
# (docker run --platform=${platform} -it --rm debian:trixie-slim /bin/bash -c 'apt update && apt install -y g++ && g++ -march=native -Q --help=target 2>&1' || echo "arch failed") > ${LOG_BASE}_march.txt
2630
target=firestarr
2731
log=${LOG_BASE}_${target}.log
2832
docker build --progress=plain --platform=${platform} --target ${target} -t ${target} -f .docker/Dockerfile . &> ${log}

0 commit comments

Comments
 (0)