mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-19 11:00:37 +00:00
pkg/build: don't fail without compiler
Some OSes don't need a compiler. Just return an empty string in such case.
This commit is contained in:
parent
ca1f32d15a
commit
bdac5e17f1
@ -68,6 +68,9 @@ func getBuilder(targetOS, targetArch, vmType string) (builder, error) {
|
||||
}
|
||||
|
||||
func CompilerIdentity(compiler string) (string, error) {
|
||||
if compiler == "" {
|
||||
return "", nil
|
||||
}
|
||||
arg := "--version"
|
||||
if strings.HasSuffix(compiler, "bazel") {
|
||||
arg = ""
|
||||
|
Loading…
x
Reference in New Issue
Block a user