Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3f083e7 authored by Steven Moreland's avatar Steven Moreland
Browse files

error for non-system, non-vendor fuzzer

We should fix the system/vendor cases before
opening this up to more variants.

Fixes: 317926582
Test: build
Change-Id: I7e06059249b6df055c08bc9a78c2e07f2016fe52
parent 6a9357d1
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -182,9 +182,13 @@ func (fuzzBin *fuzzBinary) linkerDeps(ctx DepsContext, deps Deps) Deps {
}

func (fuzz *fuzzBinary) linkerFlags(ctx ModuleContext, flags Flags) Flags {
	subdir := "lib"
	if ctx.inVendor() {
	var subdir string
	if ctx.isForPlatform() {
		subdir = "lib"
	} else if ctx.inVendor() {
		subdir = "lib/vendor"
	} else {
		ctx.ModuleErrorf("Fuzzer must be system or vendor variant")
	}

	flags = fuzz.binaryDecorator.linkerFlags(ctx, flags)