summaryrefslogtreecommitdiff
path: root/cc/cc.go
diff options
context:
space:
mode:
author Hsin-Yi Chen <hsinyichen@google.com> 2024-04-15 05:34:44 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2024-04-15 05:34:44 +0000
commitc0df1afc072373446e204ff3e471abb25dd9175c (patch)
treeb3320fc5d740a1cb194846f4da07a880616b1c0f /cc/cc.go
parent06485000dba6d86652c1a67d8a609adc886f844d (diff)
parent5f228b0c136672f96b04a3e9de9499904dcfa18a (diff)
Merge "Pass system include dirs to header ABI checker" into main
Diffstat (limited to 'cc/cc.go')
-rw-r--r--cc/cc.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 6cbf458c3..a1cae39b2 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -3325,10 +3325,10 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
// Add these re-exported flags to help header-abi-dumper to infer the abi exported by a library.
// Re-exported shared library headers must be included as well since they can help us with type information
// about template instantiations (instantiated from their headers).
- // -isystem headers are not included since for bionic libraries, abi-filtering is taken care of by version
- // scripts.
c.sabi.Properties.ReexportedIncludes = append(
c.sabi.Properties.ReexportedIncludes, depExporterInfo.IncludeDirs.Strings()...)
+ c.sabi.Properties.ReexportedSystemIncludes = append(
+ c.sabi.Properties.ReexportedSystemIncludes, depExporterInfo.SystemIncludeDirs.Strings()...)
}
makeLibName := MakeLibName(ctx, c, ccDep, ccDep.BaseModuleName()) + libDepTag.makeSuffix
@@ -3399,6 +3399,7 @@ func (c *Module) depsToPaths(ctx android.ModuleContext) PathDeps {
if c.sabi != nil {
c.sabi.Properties.ReexportedIncludes = android.FirstUniqueStrings(c.sabi.Properties.ReexportedIncludes)
+ c.sabi.Properties.ReexportedSystemIncludes = android.FirstUniqueStrings(c.sabi.Properties.ReexportedSystemIncludes)
}
return depPaths