object files depend only on NDK headers
* shared libraries and binaries can depend on NDK share libraries Bug: 208310402 Test: WITH_TIDY=1 make tidy-soong Test: WITH_TIDY=1 make droid Change-Id: I88ca8555c62d5ca49e36ca089749722166afec30
This commit is contained in:
@@ -549,10 +549,6 @@ func transformSourceToObj(ctx android.ModuleContext, subdir string, srcFiles, no
|
||||
return "$" + kind + n
|
||||
}
|
||||
|
||||
// clang-tidy checks source files and does not need to link with libraries.
|
||||
// tidyPathDeps should contain pathDeps but not libraries.
|
||||
tidyPathDeps := skipNdkLibraryDeps(ctx, pathDeps)
|
||||
|
||||
for i, srcFile := range srcFiles {
|
||||
objFile := android.ObjPathWithExt(ctx, subdir, srcFile, "o")
|
||||
|
||||
@@ -676,7 +672,7 @@ func transformSourceToObj(ctx android.ModuleContext, subdir string, srcFiles, no
|
||||
Output: tidyFile,
|
||||
Input: srcFile,
|
||||
Implicits: cFlagsDeps,
|
||||
OrderOnly: tidyPathDeps,
|
||||
OrderOnly: pathDeps,
|
||||
Args: map[string]string{
|
||||
"ccCmd": ccCmd,
|
||||
"cFlags": shareFlags("cFlags", escapeSingleQuotes(moduleToolingFlags)),
|
||||
|
Reference in New Issue
Block a user