Merge "Revert "error for non-system, non-vendor fuzzer"" into main
diff --git a/cc/fuzz.go b/cc/fuzz.go
index cbe139f..8a974c0 100644
--- a/cc/fuzz.go
+++ b/cc/fuzz.go
@@ -182,13 +182,9 @@
}
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)