Skip to content

Commit

Permalink
Revert "builder: Add private includes only to specific packages"
Browse files Browse the repository at this point in the history
This reverts commit 0ce1291.
  • Loading branch information
vrahane committed May 17, 2024
1 parent 0307ed2 commit 2c083d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions newt/builder/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,6 @@ func (b *Builder) collectCompileEntriesBpkg(bpkg *BuildPackage) (
return nil, err
}

var privateIncCi toolchain.CompilerInfo
privateIncCi.Includes = bpkg.privateIncludeDirs(b)
c.AddInfo(&privateIncCi)

srcDirs := []string{}

if len(bpkg.SourceDirectories) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion newt/builder/buildpackage.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (bpkg *BuildPackage) CompilerInfo(
return nil, err
}

ci.Includes = append(ci.Includes, includePaths...)
ci.Includes = append(bpkg.privateIncludeDirs(b), includePaths...)
bpkg.ci = ci

return bpkg.ci, nil
Expand Down

0 comments on commit 2c083d3

Please sign in to comment.