aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-testbuild/testbuild.go
diff options
context:
space:
mode:
authorSpace Meyer <meyerpatrick@google.com>2022-07-30 12:16:05 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2022-09-01 10:42:40 +0200
commitd8e6f911090ec0020f34e094005284b5c8ac1e7f (patch)
treea66996629b5aa75ac0a06a58af547dafa73f94a7 /tools/syz-testbuild/testbuild.go
parent3f79a9101d6ae91acf7edde3727992988bb01ae1 (diff)
pkg/bisect: support clang for crash bisection
Before we hardcoded bisection to use gcc, now the compiler family can be configured in the bisection config.
Diffstat (limited to 'tools/syz-testbuild/testbuild.go')
-rw-r--r--tools/syz-testbuild/testbuild.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/syz-testbuild/testbuild.go b/tools/syz-testbuild/testbuild.go
index 9fe1dd3f1..be2718b3a 100644
--- a/tools/syz-testbuild/testbuild.go
+++ b/tools/syz-testbuild/testbuild.go
@@ -101,7 +101,7 @@ func main() {
tool.Fail(err)
}
log.Printf("HEAD is on %v %v", head.Hash, head.Title)
- tags, err := bisecter.PreviousReleaseTags(head.Hash)
+ tags, err := bisecter.PreviousReleaseTags(head.Hash, "gcc")
if err != nil {
tool.Fail(err)
}
@@ -125,7 +125,7 @@ func main() {
}
func test(repo vcs.Repo, bisecter vcs.Bisecter, kernelConfig []byte, env instance.Env, com *vcs.Commit) {
- bisectEnv, err := bisecter.EnvForCommit(*flagBisectBin, com.Hash, kernelConfig)
+ bisectEnv, err := bisecter.EnvForCommit("gcc", *flagBisectBin, com.Hash, kernelConfig)
if err != nil {
tool.Fail(err)
}