Add SKIP_NATIVE to skip building for native

* remove tail
* DEBUG_SHELL: pause before copying
This commit is contained in:
2026-01-17 12:01:35 -05:00
parent 2e7e85b81c
commit 1e047e2ba2
2 changed files with 6 additions and 5 deletions

View File

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

5
run.sh
View File

@@ -20,7 +20,6 @@ cd ./w
if [ "${DEBUG_SHELL-n}" = y ]; then if [ "${DEBUG_SHELL-n}" = y ]; then
echo "Stopping before build... Run 'exit 1' to skip building" echo "Stopping before build... Run 'exit 1' to skip building"
tail -12 "$0"
bash bash
fi fi
@@ -34,9 +33,9 @@ fi
LOGDEST=../output PKGDEST=../output makepkg --syncdeps --log LOGDEST=../output PKGDEST=../output makepkg --syncdeps --log
sudo cp -r ../output /w
if [ "${DEBUG_SHELL-n}" = y ]; then if [ "${DEBUG_SHELL-n}" = y ]; then
echo "Build complete" echo "Build complete"
bash bash
fi fi
sudo cp -r ../output /w