Skip to content

Commit 2c083d3

Browse files
committed
Revert "builder: Add private includes only to specific packages"
This reverts commit 0ce1291.
1 parent 0307ed2 commit 2c083d3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

newt/builder/build.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,6 @@ func (b *Builder) collectCompileEntriesBpkg(bpkg *BuildPackage) (
322322
return nil, err
323323
}
324324

325-
var privateIncCi toolchain.CompilerInfo
326-
privateIncCi.Includes = bpkg.privateIncludeDirs(b)
327-
c.AddInfo(&privateIncCi)
328-
329325
srcDirs := []string{}
330326

331327
if len(bpkg.SourceDirectories) > 0 {

newt/builder/buildpackage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ func (bpkg *BuildPackage) CompilerInfo(
243243
return nil, err
244244
}
245245

246-
ci.Includes = append(ci.Includes, includePaths...)
246+
ci.Includes = append(bpkg.privateIncludeDirs(b), includePaths...)
247247
bpkg.ci = ci
248248

249249
return bpkg.ci, nil

0 commit comments

Comments
 (0)