aboutsummaryrefslogtreecommitdiff
path: root/goodfile
diff options
context:
space:
mode:
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"})