Files
nixpkgs/pkgs/by-name/qb/qbe/001-dont-hardcode-tmp.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

44 lines
965 B
Diff

diff --git a/minic/mcc b/minic/mcc
index 492947e..5258aac 100755
--- a/minic/mcc
+++ b/minic/mcc
@@ -31,9 +31,9 @@ then
fi
-$DIR/minic < $file > /tmp/minic.ssa &&
-$QBE < /tmp/minic.ssa > /tmp/minic.s &&
-cc /tmp/minic.s $flags
+$DIR/minic < $file > ${TMPDIR:-/tmp}/minic.ssa &&
+$QBE < ${TMPDIR:-/tmp}/minic.ssa > ${TMPDIR:-/tmp}/minic.s &&
+cc ${TMPDIR:-/tmp}/minic.s $flags
if test $? -ne 0
then
diff --git a/tools/cra.sh b/tools/cra.sh
index 5988267..57a4b34 100755
--- a/tools/cra.sh
+++ b/tools/cra.sh
@@ -2,7 +2,7 @@
DIR=`cd $(dirname "$0"); pwd`
QBE=$DIR/../qbe
-BUGF=/tmp/bug.id
+BUGF=${TMPDIR:-/tmp}/bug.id
FIND=$1
FIND=${FIND:-afl-find}
diff --git a/tools/test.sh b/tools/test.sh
index 23c6663..fb36222 100755
--- a/tools/test.sh
+++ b/tools/test.sh
@@ -4,7 +4,7 @@ dir=`dirname "$0"`
bin=$dir/../qbe
binref=$dir/../qbe.ref
-tmp=/tmp/qbe.zzzz
+tmp=${TMPDIR:-/tmp}/qbe.zzzz
drv=$tmp.c
asm=$tmp.s