From ea56e460d0b74967dcb9acf5066f2e9b98a2c350 Mon Sep 17 00:00:00 2001 From: DubbleClick Date: Fri, 25 Jul 2025 10:00:49 +0700 Subject: [PATCH] zig script --- src/SPC/store/scripts/zig-cc.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/SPC/store/scripts/zig-cc.sh b/src/SPC/store/scripts/zig-cc.sh index d162a369..388a3655 100644 --- a/src/SPC/store/scripts/zig-cc.sh +++ b/src/SPC/store/scripts/zig-cc.sh @@ -19,6 +19,13 @@ while [[ $# -gt 0 ]]; do ARG_ABS="$(realpath "$ARG" 2>/dev/null || true)" [[ "$ARG_ABS" == "$BUILDROOT_ABS" ]] && PARSED_ARGS+=("-I$ARG") || PARSED_ARGS+=("-isystem$ARG") ;; + -march=*|-mcpu=*) # replace -march=x86-64 with -march=x86_64 + OPT_NAME="${1%%=*}" + OPT_VALUE="${1#*=}" + OPT_VALUE="${OPT_VALUE//-/_}" + PARSED_ARGS+=("${OPT_NAME}=${OPT_VALUE}") + shift + ;; *) PARSED_ARGS+=("$1") shift