Compare commits

...

2 Commits

Author SHA1 Message Date
3d67fe8d6e minor cleanup 2026-01-17 14:23:41 -05:00
1e047e2ba2 Add SKIP_NATIVE to skip building for native
* remove tail
* DEBUG_SHELL: pause before copying
2026-01-17 12:01:35 -05:00
2 changed files with 10 additions and 9 deletions

View File

@@ -10,5 +10,7 @@ done
# Enables all extra features supported by host CPU
if [ "${SKIP_NATIVE-n}" = n ]; then
CFLAGS="$CFLAGS -march=native -mtune=native"
CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"
fi

9
run.sh
View File

@@ -7,7 +7,7 @@ if [[ ! -f /w/PKGBUILD ]]; then
exit 1
fi
# /etc/hosts is managed by podman. Copying or editing with `sed -i` does not seem to work. Only appendig works
# /etc/hosts is managed by podman. Copying or editing with `sed -i` does not seem to work. Only appending works
# podman sets up 169.254.1.2 to be the ip of the host
sudo sh -c 'echo "100.64.0.2 archmirror.i.balki.me" >> /etc/hosts'
sudo sh -c 'echo "100.64.0.2 gitea.balki.me" >> /etc/hosts'
@@ -19,8 +19,7 @@ cp -r /w .
cd ./w
if [ "${DEBUG_SHELL-n}" = y ]; then
echo "Stopping before build... Run 'exit 1' to skip building"
tail -12 "$0"
echo "$0 : Stopping before build... Run 'exit 1' to skip building"
bash
fi
@@ -34,9 +33,9 @@ fi
LOGDEST=../output PKGDEST=../output makepkg --syncdeps --log
sudo cp -r ../output /w
if [ "${DEBUG_SHELL-n}" = y ]; then
echo "Build complete"
bash
fi
sudo cp -r ../output /w