aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-03-12 21:58:37 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-03-12 21:58:37 +0000
commitdcc04cfc5a2a4cf8258175c04250060438561a30 (patch)
tree59104e0844774183465582c1a19de6c15a43d1b5
parent2f6d88b6d91bbb7cb7d98afbb7d1b4366616299d (diff)
downloadcpt-dcc04cfc5a2a4cf8258175c04250060438561a30.tar.gz
kiss-choot: Allow arch to be set via $2
FossilOrigin-Name: 209d3315ca18f66cef9970c44af182b294f9c3b3d0dcf6f46a833c9dd53c840b
-rwxr-xr-xcontrib/kiss-chroot4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/kiss-chroot b/contrib/kiss-chroot
index c89271a..e391a11 100755
--- a/contrib/kiss-chroot
+++ b/contrib/kiss-chroot
@@ -48,8 +48,8 @@ main() {
SHELL=/bin/sh \
USER=root \
KISS_ASROOT=1 \
- CFLAGS="-march=x86-64 -mtune=generic -pipe -Os" \
- CXXFLAGS="-march=x86-64 -mtune=generic -pipe -Os" \
+ CFLAGS="-march=${2:-x86-64} -mtune=generic -pipe -Os" \
+ CXXFLAGS="-march=${2:-x86-64} -mtune=generic -pipe -Os" \
MAKEFLAGS="-j$(nproc 2>/dev/null || echo 1)" \
/bin/sh -l
}