Correct isThirdParty check
Previously, isThirdParty check was over-selecting for third-party-ness,
the only non-third-party paths were those explicitly excluded from
typically third party directories, results in ~all code being considered
third party.
Updated test to ensure bionic is not considered third party, which fails
without this change.
Test: go soong tests
Change-Id: Id371aaad2ceef2b3163384fa84712397877cbe90
diff --git a/cc/compiler.go b/cc/compiler.go
index 34ac47a..e19efd5 100644
--- a/cc/compiler.go
+++ b/cc/compiler.go
@@ -692,8 +692,9 @@
return false
}
}
+ return true
}
- return true
+ return false
}
// Properties for rust_bindgen related to generating rust bindings.