diff options
author | 2021-07-30 13:25:42 -0700 | |
---|---|---|
committer | 2021-08-02 11:50:34 -0700 | |
commit | b2703adce4c5d69ff0b3334dd4cca0583c2d82c6 (patch) | |
tree | b2d078464a75fb68d0ccffb95defcef1114d18c7 /cc/compiler_test.go | |
parent | 067b88976206266082762a3ba757088b7db83ab6 (diff) |
Conditionally apply rustdoc flags to third party crates
This CL changes the logic in rust/builder.go so that some rustdoc flags
are only applied to external crates. This will allow us to since
warnings and deal with soft-failures in external crates while allowing
us to be more strict with our internal Rust code.
Bug: 195136952
Test: m rustdoc
Change-Id: Icdde304bbbb323cae9657e8f842f58ae79e811ce
Diffstat (limited to 'cc/compiler_test.go')
-rw-r--r-- | cc/compiler_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/compiler_test.go b/cc/compiler_test.go index a3ee4a616..9ae4d1859 100644 --- a/cc/compiler_test.go +++ b/cc/compiler_test.go @@ -16,6 +16,8 @@ package cc import ( "testing" + + "android/soong/android" ) func TestIsThirdParty(t *testing.T) { @@ -32,12 +34,12 @@ func TestIsThirdParty(t *testing.T) { "bionic/libc", } for _, path := range thirdPartyPaths { - if !isThirdParty(path) { + if !android.IsThirdPartyPath(path) { t.Errorf("Expected %s to be considered third party", path) } } for _, path := range nonThirdPartyPaths { - if isThirdParty(path) { + if android.IsThirdPartyPath(path) { t.Errorf("Expected %s to *not* be considered third party", path) } } |