Add -B/--backtrace option to RGBASM and RGBLINK (#1787)

This commit is contained in:
Rangi
2025-08-11 14:30:14 -04:00
committed by GitHub
parent 92a9c73ee7
commit 5f8b7474b4
303 changed files with 2729 additions and 2409 deletions

View File

@@ -62,7 +62,7 @@ fi
for i in *.asm notexist.asm; do
flags=${i%.asm}.flags
RGBASMFLAGS=-Weverything
RGBASMFLAGS="-Weverything -B collapse"
if [ -f "$flags" ]; then
RGBASMFLAGS="$RGBASMFLAGS $(head -n 1 "$flags")" # Allow other lines to serve as comments
fi
@@ -136,7 +136,7 @@ done
# These tests do their own thing
i="continues-after-missing-include"
RGBASMFLAGS="-Weverything -M - -MG -MC"
RGBASMFLAGS="-Weverything -B collapse -M - -MG -MC"
# Piping the .asm file to rgbasm would not make sense for dependency generation,
# so just test the normal variant
(( tests++ ))
@@ -166,9 +166,9 @@ i="state-file"
if which cygpath &>/dev/null; then
# MinGW translates path names before passing them as command-line arguments,
# but does not do so when they are prefixed, so we have to do it ourselves.
RGBASMFLAGS="-Weverything -s all:$(cygpath -w "$o")"
RGBASMFLAGS="-Weverything -B collapse -s all:$(cygpath -w "$o")"
else
RGBASMFLAGS="-Weverything -s all:$o"
RGBASMFLAGS="-Weverything -B collapse -s all:$o"
fi
for variant in '' '.pipe'; do
(( tests++ ))