aboutsummaryrefslogtreecommitdiff
path: root/goodfile
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2026-05-25 00:59:03 +0000
committeriximeow <me@iximeow.net>2026-05-25 00:59:27 +0000
commit6b2b3e82ccf9fb2b726ec819a0af7892bbb5d21a (patch)
tree21c8e0d22d8db9f9e50de07a67e276a5c7abc818 /goodfile
parent99a6378389b99784187058adbea6cfca26963d98 (diff)
goodfile should use shas directly for local untagged refs
Diffstat (limited to 'goodfile')
-rw-r--r--goodfile4
1 files changed, 3 insertions, 1 deletions
diff --git a/goodfile b/goodfile
index 20f3294..a90a885 100644
--- a/goodfile
+++ b/goodfile
@@ -38,7 +38,9 @@ Step.start("perf")
Build.run({"git", "clone", "https://github.com/iximeow/disas-bench.git", "disas-bench"})
Build.run({"git", "submodule", "update", "--recursive", "--init"}, {cwd="disas-bench"})
Build.run({"git", "remote", "add", "dev", "../../.."}, {cwd="disas-bench/libs/yaxpeax"})
-Build.run({"git", "fetch", "-a", "dev"}, {cwd="disas-bench/libs/yaxpeax"})
+-- there might not be a ref for the current commit, if building locally and this is some untagged HEAD
+-- so fetch by sha from ../../.. 'cause it *better* be the current commit.
+Build.run({"git", "fetch", "dev", Build.sha}, {cwd="disas-bench/libs/yaxpeax"})
Build.run({"git", "checkout", Build.sha}, {cwd="disas-bench/libs/yaxpeax"})
Step.push("build")
Build.run({"make", "make-bench-yaxpeax"}, {cwd="disas-bench/bench/yaxpeax"})