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

Commit 4fc1fc93 authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Revert "error for non-system, non-vendor fuzzer"

This reverts commit c3f083e7.

Reason for revert: isForPlatform doesn't mean is system, so this
check broke vendor fuzzers.

Change-Id: I042f7b6333e305c1ea32317d080a5d8a7cd061c9
Fixes: 369745670 
Fixes: 374535599
Fixes: 374542669
Fixes: 374552568
parent c3f083e7
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -182,13 +182,9 @@ func (fuzzBin *fuzzBinary) linkerDeps(ctx DepsContext, deps Deps) Deps {
}

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

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