summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2024-10-23 21:07:24 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-10-23 21:07:24 +0000
commit4fc1fc9368d8c0f2e8bfa46693f59dd8594db387 (patch)
treeb88feebef9b4ec06e0f2ae5921c021cabdbdf0a5
parentc3f083e7f3b7bb8ce59dad00071456143dc3cbc8 (diff)
Revert "error for non-system, non-vendor fuzzer"
This reverts commit c3f083e7f3b7bb8ce59dad00071456143dc3cbc8. 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
-rw-r--r--cc/fuzz.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/cc/fuzz.go b/cc/fuzz.go
index 2b91c57c3..0aa9d4ba1 100644
--- a/cc/fuzz.go
+++ b/cc/fuzz.go
@@ -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)