#!/bin/bash
declare -a args
for i in "$@"
do
if [[ "$i" != -march* ]]; then
args+=("$i")
fi
done
ARCH=nehalem
if [[ $(uname -m) == "aarch64" ]]; then
ARCH=armv8-a
/usr/bin/g++_real -march=$ARCH "${args[@]}"